Skip to content

Commit

Permalink
Use Final = ... instead of Final[Literal] (#11623)
Browse files Browse the repository at this point in the history
  • Loading branch information
srittau authored Mar 17, 2024
1 parent 6d45cf6 commit adde7cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion stubs/croniter/croniter/croniter.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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[
Expand Down
8 changes: 4 additions & 4 deletions stubs/pika/pika/compat.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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]
Expand Down Expand Up @@ -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

0 comments on commit adde7cc

Please sign in to comment.