mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Use lowercase tuple where possible (#6170)
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user