diff --git a/stubs/croniter/croniter/croniter.pyi b/stubs/croniter/croniter/croniter.pyi index c57e0ba576bf..3d4d5ad12643 100644 --- a/stubs/croniter/croniter/croniter.pyi +++ b/stubs/croniter/croniter/croniter.pyi @@ -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[ diff --git a/stubs/pika/pika/compat.pyi b/stubs/pika/pika/compat.pyi index f1ee28d7bd9a..6d3d68be080f 100644 --- a/stubs/pika/pika/compat.pyi +++ b/stubs/pika/pika/compat.pyi @@ -2,7 +2,7 @@ from abc import ABCMeta from collections.abc import ItemsView, Mapping, ValuesView from io import StringIO as StringIO from re import Pattern -from typing import Any, Final, Literal, SupportsIndex, TypeVar +from typing import Any, Final, SupportsIndex, TypeVar from typing_extensions import TypeGuard from urllib.parse import parse_qs, quote, unquote, urlencode as urlencode, urlparse as urlparse @@ -13,8 +13,8 @@ url_quote = quote url_unquote = unquote url_parse_qs = parse_qs -PY2: Final[Literal[False]] -PY3: Final[Literal[True]] +PY2: Final = False +PY3: Final = True RE_NUM: Final[Pattern[str]] ON_LINUX: Final[bool] ON_OSX: Final[bool] @@ -45,5 +45,5 @@ def to_digit(value: str) -> int: ... def get_linux_version(release_str: str) -> tuple[int, int, int]: ... HAVE_SIGNAL: Final[bool] -EINTR_IS_EXPOSED: Final[Literal[False]] +EINTR_IS_EXPOSED: Final = False LINUX_VERSION: tuple[int, int, int] | None