Update to mypy 1.14 (#13272)

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

No files matched your search

+3 -3
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: ...