mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 03:41:28 +08:00
Mark enum.Flag.name as Optional[str] (#5611)
* Mark enum.Flag.name as Optional[str] * Annotate enum.Flag.value
This commit is contained in:
committed by
GitHub
parent
a98fceca2f
commit
0d9521970d
@@ -58,6 +58,8 @@ class auto(IntFlag):
|
||||
def __new__(cls: Type[_T]) -> _T: ...
|
||||
|
||||
class Flag(Enum):
|
||||
name: str | None # type: ignore
|
||||
value: int
|
||||
def __contains__(self: _T, other: _T) -> bool: ...
|
||||
def __repr__(self) -> str: ...
|
||||
def __str__(self) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user