Skip to content

Commit d8602a0

Browse files
Update irbuild-classes.test
1 parent 86e5b00 commit d8602a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mypyc/test-data/irbuild-classes.test

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2688,19 +2688,21 @@ L0:
26882688
return 1
26892689

26902690
[case testIsInstanceInterpretedSubclasses]
2691+
from typing import Any
26912692
from mypy_extensions import mypyc_attr
26922693

26932694
@mypyc_attr(native_class=False)
26942695
class NonNative:
26952696
pass
2697+
26962698
@mypyc_attr(allow_interpreted_subclasses=True)
26972699
class InterpSubclasses:
26982700
pass
2701+
26992702
def isinstance_nonnative(x: Any) -> bool:
27002703
return isinstance(x, NonNative)
27012704
def isinstance_interpreted_subclasses(x: Any) -> None:
27022705
return isinstance(x, InterpSubclasses)
2703-
27042706
[out]
27052707
def isinstance_nonnative(x):
27062708
x :: Any

0 commit comments

Comments
 (0)