File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -5675,10 +5675,12 @@ class FinalEnum(Enum):
56755675[builtins fixtures/isinstance.pyi]
56765676[out]
56775677main:3: error: Cannot override writable attribute "x" with a final one
5678+ main:3: error: Incompatible types in assignment (expression has type "Ok", base class "RegularEnum" defined the type as "int")
56785679main:4: error: Cannot extend enum with existing members: "FinalEnum"
56795680main:5: error: Cannot override final attribute "x" (previously declared in base class "FinalEnum")
56805681[out2]
56815682main:3: error: Cannot override writable attribute "x" with a final one
5683+ main:3: error: Incompatible types in assignment (expression has type "Ok", base class "RegularEnum" defined the type as "int")
56825684main:4: error: Cannot extend enum with existing members: "FinalEnum"
56835685main:5: error: Cannot override final attribute "x" (previously declared in base class "FinalEnum")
56845686
You can’t perform that action at this time.
0 commit comments