Update to mypy 1.14 (#13272)

This commit is contained in:
Stephen Morton
2024-12-20 17:29:38 -08:00
committed by GitHub
parent 8e31597fa5
commit 097581ea47
43 changed files with 357 additions and 79 deletions

View File

@@ -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: ...