8000 Fixed bug · CarliJoy/intersection_examples@65ffa1a · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit 65ffa1a

Browse files
committed
Fixed bug
1 parent aeb8a01 commit 65ffa1a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

intersection_examples/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,11 @@ def is_non_structural(cls: object) -> bool:
6262
bool: True is the class is non-structural
6363
"""
6464
if (
65-
cls == Any or is_protocol(cls) or is_typeddict(cls) or has_origin(cls)
66-
): # type:ignore
65+
cls == Any
66+
or is_protocol(cls) # type:ignore
67+
or is_typeddict(cls)
68+
or has_origin(cls)
69+
):
6770
return False
6871
return True
6972

0 commit comments

Comments
 (0)
0