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 86e5b00 commit d8602a0Copy full SHA for d8602a0
mypyc/test-data/irbuild-classes.test
@@ -2688,19 +2688,21 @@ L0:
2688
return 1
2689
2690
[case testIsInstanceInterpretedSubclasses]
2691
+from typing import Any
2692
from mypy_extensions import mypyc_attr
2693
2694
@mypyc_attr(native_class=False)
2695
class NonNative:
2696
pass
2697
+
2698
@mypyc_attr(allow_interpreted_subclasses=True)
2699
class InterpSubclasses:
2700
2701
2702
def isinstance_nonnative(x: Any) -> bool:
2703
return isinstance(x, NonNative)
2704
def isinstance_interpreted_subclasses(x: Any) -> None:
2705
return isinstance(x, InterpSubclasses)
-
2706
[out]
2707
def isinstance_nonnative(x):
2708
x :: Any
0 commit comments