Skip to content

Commit bbf0a2a

Browse files
committed
use more precise type comparaison than native python equality
1 parent b4758b1 commit bbf0a2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql/execution/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def does_fragment_condition_match(ctx, fragment, type_):
228228
return True
229229

230230
conditional_type = type_from_ast(ctx.schema, type_condition_ast)
231-
if conditional_type == type_:
231+
if conditional_type.is_same_type(type_):
232232
return True
233233

234234
if isinstance(conditional_type, (GraphQLInterfaceType, GraphQLUnionType)):

0 commit comments

Comments
 (0)