Skip to content

Commit d7b14d3

Browse files
committed
Update test case
1 parent 4ae5446 commit d7b14d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mypy/test/data/check-isinstance.test

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,9 @@ if isinstance(x, B) and isinstance(y, C):
740740
y.glaf += 1
741741
x() # E: "B" not callable
742742
y() # E: "C" not callable
743+
else:
744+
x() # E: "A" not callable
745+
y() # E: "A" not callable
743746
[builtins fixtures/isinstancelist.py]
744747

745748
[case testIsinstanceMultiAndSpecialCase]

0 commit comments

Comments
 (0)