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 c246a52 commit 6d7c519Copy full SHA for 6d7c519
mypyc/irbuild/prepare.py
@@ -301,7 +301,12 @@ def prepare_class_def(
301
# Set up the parent class
302
bases = [mapper.type_to_ir[base.type] for base in info.bases if base.type in mapper.type_to_ir]
303
if not all(c.is_trait for c in bases[1:]):
304
- errors.error("Non-trait bases must appear first in parent list", path, cdef.line)
+ errors.error(
305
+ "Multiple inheritance is not currently supported (except for traits)."
306
+ " Ref: https://mypyc.rtfd.io/en/latest/native_classes.html#inheritance",
307
+ path,
308
+ cdef.line,
309
+ )
310
ir.traits = [c for c in bases if c.is_trait]
311
312
mro = []
0 commit comments