Skip to content

Commit ee9ce8c

Browse files
committed
CHECK PRIMER
1 parent 2b6d26c commit ee9ce8c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

mypy/checker.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7060,6 +7060,9 @@ def narrow_type_by_identity_equality(
70607060
return if_map, else_map
70617061

70627062
def broaden_equality_target_type(self, current_type: Type, target_type: Type) -> Type:
7063+
return target_type
7064+
7065+
# TODO: is this useful on primer?
70637066
current_type = get_proper_type(current_type)
70647067
if not (
70657068
isinstance(current_type, Instance) and current_type.type.fullname == "builtins.object"

0 commit comments

Comments
 (0)