Use Final = ... instead of Final[Literal] (#11623)

This commit is contained in:
Sebastian Rittau
2024-03-17 15:12:16 +01:00
committed by GitHub
parent 6d45cf6e18
commit adde7cc3ac
2 changed files with 5 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ class CroniterNotAlphaError(CroniterError): ...
def datetime_to_timestamp(d: datetime.datetime) -> float: ...
class croniter(Iterator[Any]):
MONTHS_IN_YEAR: Final[Literal[12]]
MONTHS_IN_YEAR: Final = 12
RANGES: Final[tuple[tuple[int, int], tuple[int, int], tuple[int, int], tuple[int, int], tuple[int, int], tuple[int, int]]]
DAYS: Final[
tuple[