8000
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 8add344 commit ba7af85Copy full SHA for ba7af85
mypy/checker.py
@@ -741,7 +741,7 @@ def is_implicit_any(t: Type) -> bool:
741
self.accept(init)
742
743
# Type check body in a new scope.
744
- with self.binder.frame_context(1):
+ with self.binder.frame_context():
745
self.accept(item.body)
746
747
self.return_types.pop()
test-data/unit/check-isinstance.test
@@ -578,6 +578,14 @@ def foo() -> None:
578
return
579
y = x + 'asdad'
580
581
+def bar() -> None:
582
+ x = 1 # type: Union[int, str]
583
+ if isinstance(x, int):
584
+ return
585
+ else:
586
+ pass
587
+ y = x + 'asdad'
588
+
589
foo()
590
[builtins fixtures/isinstancelist.py]
591
[case testIsInstanceBadBreak]
0 commit comments