Skip to content

Commit 9b53fdd

Browse files
committed
Fix equality comparison of CallableType, this was funny to debug
1 parent dbe01f6 commit 9b53fdd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mypy/types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2270,6 +2270,8 @@ def __eq__(self, other: object) -> bool:
22702270
and self.name == other.name
22712271
and self.is_type_obj() == other.is_type_obj()
22722272
and self.is_ellipsis_args == other.is_ellipsis_args
2273+
and self.type_guard == other.type_guard
2274+
and self.type_is == other.type_is
22732275
and self.fallback == other.fallback
22742276
)
22752277
else:

0 commit comments

Comments
 (0)