Skip to content

Commit 5e49352

Browse files
committed
Fix "sketchy-number" issue
Replicates graphql/graphql-js@dfcdce7
1 parent 0cc2539 commit 5e49352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/validation/test_possible_type_extensions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def unknown_type(type_name, suggested_types, line, col):
2424
def different_type(type_name, kind, l1, c1, l2=None, c2=None):
2525
message = extending_different_type_kind_message(type_name, kind)
2626
locations = [(l1, c1)]
27-
if l2 and c2:
27+
if l2 is not None and c2 is not None:
2828
locations.append((l2, c2))
2929
return {"message": message, "locations": locations}
3030

0 commit comments

Comments
 (0)