Skip to content

Commit ef97e3d

Browse files
committed
Add explicit return to make mypy happy
1 parent 8bb00b4 commit ef97e3d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graphql/utils/get_field_def.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ def get_field_def(
3636

3737
elif isinstance(parent_type, (GraphQLObjectType, GraphQLInterfaceType)):
3838
return parent_type.fields.get(name)
39+
40+
return None

0 commit comments

Comments
 (0)