We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cc2539 commit 5e49352Copy full SHA for 5e49352
tests/validation/test_possible_type_extensions.py
@@ -24,7 +24,7 @@ def unknown_type(type_name, suggested_types, line, col):
24
def different_type(type_name, kind, l1, c1, l2=None, c2=None):
25
message = extending_different_type_kind_message(type_name, kind)
26
locations = [(l1, c1)]
27
- if l2 and c2:
+ if l2 is not None and c2 is not None:
28
locations.append((l2, c2))
29
return {"message": message, "locations": locations}
30
0 commit comments