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 4e9e608 commit 868038aCopy full SHA for 868038a
mypyc/test-data/run-classes.test
@@ -2725,17 +2725,23 @@ class A:
2725
def __del__(self):
2726
print("deleting A...")
2727
2728
-class B(A):
+class B:
2729
+ def __del__(self):
2730
+ print("deleting B...")
2731
+
2732
+class C(B):
2733
def __init__(self):
2734
self.a = A()
2735
2736
- print("deleting B...")
2737
+ print("deleting C...")
2738
+ super().__del__()
2739
2740
[file driver.py]
2741
import native
-native.B()
2742
+native.C()
2743
2744
[out]
2745
+deleting C...
2746
deleting B...
2747
deleting A...
0 commit comments