mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Use Final = ... instead of Final[Literal] (#11623)
This commit is contained in:
@@ -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[
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user