Skip to content

Commit

Permalink
Fix for graphql type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
tofarr committed Sep 18, 2023
1 parent 05378a1 commit 4a46a4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions servey/servey_strawberry/schema_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class SchemaFactory:
handler_filters: List[HandlerFilterABC] = field(default_factory=list)

def get_input(self, annotation: Type) -> Type:
if getattr(annotation, "__name__", None) not in (None, "Optional"):
if getattr(annotation, "__name__", None) not in (None, "List", "Optional"):
i = self.inputs.get(annotation.__name__)
if i:
return i
Expand All @@ -55,7 +55,7 @@ def get_input(self, annotation: Type) -> Type:
return i

def get_type(self, annotation: Type):
if getattr(annotation, "__name__", None) not in (None, "Optional"):
if getattr(annotation, "__name__", None) not in (None, "List", "Optional"):
type_ = self.types.get(annotation.__name__)
if type_:
return type_
Expand Down

0 comments on commit 4a46a4f

Please sign in to comment.