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 9fce629 commit b90961eCopy full SHA for b90961e
mypyc/test-data/irbuild-classes.test
@@ -2705,8 +2705,21 @@ def isinstance_interpreted_subclasses(x: Any) -> bool:
2705
return isinstance(x, InterpSubclasses)
2706
[out]
2707
def isinstance_nonnative(x):
2708
- x :: Any
+ x, r0 :: object
2709
+ r1 :: ptr
2710
+ r2 :: object
2711
+ r3 :: r2 == r0
2712
+ return r3
2713
L0:
2714
+ r0 = __main__.NonNative :: type
2715
+ r1 = get_element_ptr x ob_type :: PyObject
2716
+ r2 :: borrow load_mem r1 :: builtins.object*
2717
2718
2719
def isinstance_interpreted_subclasses(x):
2720
2721
+ r1 :: bool
2722
2723
+ r0 = __main__.InterpSubclasses :: type
2724
+ r1 = CPy_TypeCheck(x, r0)
2725
+ return r1
0 commit comments