mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
[enum] Add Flag._numeric_repr_ (#15061)
This commit is contained in:
@@ -255,6 +255,7 @@ _auto_null: Any
|
||||
class Flag(Enum):
|
||||
_name_: str | None # type: ignore[assignment]
|
||||
_value_: int
|
||||
_numeric_repr_: Callable[[int], str]
|
||||
@_magic_enum_attr
|
||||
def name(self) -> str | None: ... # type: ignore[override]
|
||||
@_magic_enum_attr
|
||||
|
||||
Reference in New Issue
Block a user