mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-25 19:17:16 +08:00
Update to mypy 1.14 (#13272)
This commit is contained in:
@@ -8,15 +8,15 @@ class SignatureFlag(IntEnum):
|
||||
SIGNATURES_EXIST = 1
|
||||
APPEND_ONLY = 2
|
||||
|
||||
class CoerciveEnum(Enum):
|
||||
class CoerciveEnum(Enum): # type: ignore[misc] # Enum with no members
|
||||
@classmethod
|
||||
def coerce(cls, value: Self | str) -> Self: ...
|
||||
|
||||
class CoerciveIntEnum(IntEnum):
|
||||
class CoerciveIntEnum(IntEnum): # type: ignore[misc] # Enum with no members
|
||||
@classmethod
|
||||
def coerce(cls, value: Self | str | int) -> Self: ...
|
||||
|
||||
class CoerciveIntFlag(IntFlag):
|
||||
class CoerciveIntFlag(IntFlag): # type: ignore[misc] # Enum with no members
|
||||
@classmethod
|
||||
def coerce(cls, value: Self | str | int) -> Self: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user