We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fc57a2 commit 11637e1Copy full SHA for 11637e1
1 file changed
mypy/checker.py
@@ -6594,7 +6594,7 @@ def find_isinstance_check_helper(
6594
original_type = self.lookup_type(expr)
6595
current_type = self.expr_checker.narrow_type_from_binder(expr, original_type)
6596
yes_type, no_type = self.conditional_types_with_intersection(
6597
- current_type, self.get_isinstance_type(node.args[1]), expr
+ original_type, self.get_isinstance_type(node.args[1]), expr
6598
)
6599
if (
6600
self.binder.get(expr) is not None
0 commit comments