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: test-data/unit/fine-grained.test
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2954,7 +2954,8 @@ class B(metaclass=c.M): pass
2954
2954
class M(type): pass
2955
2955
[out]
2956
2956
==
2957
-
a.py:3: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases - a.M2 (meta of a.D) conflicting with c.M (metaclass of b.B)
2957
+
a.py:3: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
2958
+
a.py:3: note: a.M2 (meta of a.D) conflicts with c.M (metaclass of b.B)
2958
2959
2959
2960
[case testFineMetaclassDeclaredUpdate]
2960
2961
import a
@@ -2973,7 +2974,8 @@ class M(type): pass
2973
2974
class M2(type): pass
2974
2975
[out]
2975
2976
==
2976
-
a.py:3: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases - b.M2 (meta of a.D) conflicting with b.M (metaclass of a.B)
2977
+
a.py:3: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
2978
+
a.py:3: note: b.M2 (meta of a.D) conflicts with b.M (metaclass of a.B)
0 commit comments