You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mypyc/test-data/irbuild-classes.test
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1363,7 +1363,7 @@ def decorator(cls):
1363
1363
1364
1364
@mypyc_attr(native_class=True)
1365
1365
@decorator
1366
-
class NonNativeClassContradiction(): # E: Class is marked as native_class=True but it can't be a native class
1366
+
class NonNativeClassContradiction(): # E: Class is marked as native_class=True but it can't be a native class. Classes that have decorators other than supported decorators can't be native classes.
1367
1367
pass
1368
1368
1369
1369
@@ -1379,5 +1379,5 @@ class M(type): # E: Inheriting from most builtin types is unimplemented
1379
1379
pass
1380
1380
1381
1381
@mypyc_attr(native_class=True)
1382
-
class A(metaclass=M): # E: Class is marked as native_class=True but it can't be a native class
1382
+
class A(metaclass=M): # E: Class is marked as native_class=True but it can't be a native class. Classes with a metaclass other than ABCMeta, TypingMeta or GenericMeta can't be native classes.
0 commit comments