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 c78ef92 commit e4e3f0dCopy full SHA for e4e3f0d
tests/cpydiff/types_exception_subclassinit.py
@@ -1,8 +1,12 @@
1
"""
2
categories: Types,Exception
3
-description: Exception.__init__ raises TypeError if overridden and called by subclass
4
-cause: Unknown
5
-workaround: Unknown
+description: Exception.__init__ method does not exist.
+cause: Subclassing native classes is not fully supported in MicroPython.
+workaround: Call using ``super()`` instead::
6
+
7
+class A(Exception):
8
+ def __init__(self):
9
+ super().__init__()
10
11
class A(Exception):
12
def __init__(self):
0 commit comments