Skip to content

Commit 11637e1

Browse files
committed
Revise isinstance narrowing with prior binder type
1 parent 8fc57a2 commit 11637e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mypy/checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6594,7 +6594,7 @@ def find_isinstance_check_helper(
65946594
original_type = self.lookup_type(expr)
65956595
current_type = self.expr_checker.narrow_type_from_binder(expr, original_type)
65966596
yes_type, no_type = self.conditional_types_with_intersection(
6597-
current_type, self.get_isinstance_type(node.args[1]), expr
6597+
original_type, self.get_isinstance_type(node.args[1]), expr
65986598
)
65996599
if (
66006600
self.binder.get(expr) is not None

0 commit comments

Comments
 (0)