We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b6d26c commit ee9ce8cCopy full SHA for ee9ce8c
1 file changed
mypy/checker.py
@@ -7060,6 +7060,9 @@ def narrow_type_by_identity_equality(
7060
return if_map, else_map
7061
7062
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?
7066
current_type = get_proper_type(current_type)
7067
if not (
7068
isinstance(current_type, Instance) and current_type.type.fullname == "builtins.object"
0 commit comments