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

@@ -7,7 +7,7 @@ _TimeTuple = Tuple[int, int, int, int, int, int, int, int, int]
altzone: int
daylight: int
timezone: int
tzname: Tuple[str, str]
tzname: tuple[str, str]
if sys.version_info >= (3, 7):
if sys.platform == "linux":
@@ -51,16 +51,16 @@ class _struct_time(NamedTuple):
class struct_time(_struct_time):
def __init__(
self,
o: Tuple[int, int, int, int, int, int, int, int, int]
| Tuple[int, int, int, int, int, int, int, int, int, str]
| Tuple[int, int, int, int, int, int, int, int, int, str, int],
o: tuple[int, int, int, int, int, int, int, int, int]
| tuple[int, int, int, int, int, int, int, int, int, str]
| tuple[int, int, int, int, int, int, int, int, int, str, int],
_arg: Any = ...,
) -> None: ...
def __new__(
cls,
o: Tuple[int, int, int, int, int, int, int, int, int]
| Tuple[int, int, int, int, int, int, int, int, int, str]
| Tuple[int, int, int, int, int, int, int, int, int, str, int],
o: tuple[int, int, int, int, int, int, int, int, int]
| tuple[int, int, int, int, int, int, int, int, int, str]
| tuple[int, int, int, int, int, int, int, int, int, str, int],
_arg: Any = ...,
) -> struct_time: ...
@property