File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import _typeshed
2
2
import sys
3
3
import types
4
4
from _typeshed import SupportsKeysAndGetItem , Unused
5
- from abc import ABCMeta
6
5
from builtins import property as _builtins_property
7
6
from collections .abc import Callable , Iterable , Iterator , Mapping
8
7
from typing import Any , Generic , TypeVar , overload
@@ -76,12 +75,8 @@ class _EnumDict(dict[str, Any]):
76
75
@overload
77
76
def update (self , members : Iterable [tuple [str , Any ]], ** more_members : Any ) -> None : ...
78
77
79
- # Note: EnumMeta actually subclasses type directly, not ABCMeta.
80
- # This is a temporary workaround to allow multiple creation of enums with builtins
81
- # such as str as mixins, which due to the handling of ABCs of builtin types, cause
82
- # spurious inconsistent metaclass structure. See #1595.
83
78
# Structurally: Iterable[T], Reversible[T], Container[T] where T is the enum itself
84
- class EnumMeta (ABCMeta ):
79
+ class EnumMeta (type ):
85
80
if sys .version_info >= (3 , 11 ):
86
81
def __new__ (
87
82
metacls : type [_typeshed .Self ],
You can’t perform that action at this time.
0 commit comments