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 781245f commit cd61a5dCopy full SHA for cd61a5d
test-data/unit/semanal-classvar.test
@@ -72,15 +72,6 @@ class B(A):
72
[out]
73
main:5: error: Invalid class attribute definition (previously declared on base class "A")
74
75
-[case testOverrideClassVarWithInstanceVariable]
76
-from typing import ClassVar
77
-class A:
78
- x = 1 # type: ClassVar[int]
79
-class B(A):
80
- x = 2 # type: int
81
-[out]
82
-main:5: error: Invalid class attribute definition (previously declared on base class "A")
83
-
84
[case testOverrideClassVarManyBases]
85
from typing import ClassVar
86
class A:
0 commit comments