Use lowercase tuple where possible (#6170)

This commit is contained in:
Akuli
2021-10-15 00:18:19 +00:00
committed by GitHub
parent 5f386b0575
commit 994b69ef8f
242 changed files with 1212 additions and 1224 deletions

View File

@@ -1,5 +1,5 @@
from datetime import datetime, tzinfo
from typing import IO, Any, Mapping, Text, Tuple, Union
from typing import IO, Any, Mapping, Text, Union
from .isoparser import isoparse as isoparse, isoparser as isoparser
@@ -7,10 +7,10 @@ _FileOrStr = Union[bytes, Text, IO[str], IO[Any]]
class parserinfo(object):
JUMP: list[str]
WEEKDAYS: list[Tuple[str, str]]
MONTHS: list[Tuple[str, str]]
HMS: list[Tuple[str, str, str]]
AMPM: list[Tuple[str, str]]
WEEKDAYS: list[tuple[str, str]]
MONTHS: list[tuple[str, str]]
HMS: list[tuple[str, str, str]]
AMPM: list[tuple[str, str]]
UTCZONE: list[str]
PERTAIN: list[str]
TZOFFSET: dict[str, int]

View File

@@ -1,5 +1,5 @@
import datetime
from typing import IO, Any, Text, Tuple, Union
from typing import IO, Any, Text, Union
from ..relativedelta import relativedelta
from ._common import _tzinfo as _tzinfo, enfold as enfold, tzname_in_python2 as tzname_in_python2, tzrangebase as tzrangebase
@@ -73,7 +73,7 @@ class tzrange(tzrangebase):
start: relativedelta | None = ...,
end: relativedelta | None = ...,
) -> None: ...
def transitions(self, year: int) -> Tuple[datetime.datetime, datetime.datetime]: ...
def transitions(self, year: int) -> tuple[datetime.datetime, datetime.datetime]: ...
def __eq__(self, other): ...
class tzstr(tzrange):