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,6 +1,6 @@
import sys
from time import struct_time
from typing import ClassVar, NamedTuple, SupportsAbs, Tuple, Type, TypeVar, overload
from typing import ClassVar, NamedTuple, SupportsAbs, Type, TypeVar, overload
_S = TypeVar("_S")
@@ -79,7 +79,7 @@ class date:
if sys.version_info >= (3, 9):
def isocalendar(self) -> _IsoCalendarDate: ...
else:
def isocalendar(self) -> Tuple[int, int, int]: ...
def isocalendar(self) -> tuple[int, int, int]: ...
class time:
min: ClassVar[time]
@@ -174,7 +174,7 @@ class timedelta(SupportsAbs[timedelta]):
@overload
def __truediv__(self, other: float) -> timedelta: ...
def __mod__(self, other: timedelta) -> timedelta: ...
def __divmod__(self, other: timedelta) -> Tuple[int, timedelta]: ...
def __divmod__(self, other: timedelta) -> tuple[int, timedelta]: ...
def __le__(self, other: timedelta) -> bool: ...
def __lt__(self, other: timedelta) -> bool: ...
def __ge__(self, other: timedelta) -> bool: ...
@@ -295,4 +295,4 @@ class datetime(date):
if sys.version_info >= (3, 9):
def isocalendar(self) -> _IsoCalendarDate: ...
else:
def isocalendar(self) -> Tuple[int, int, int]: ...
def isocalendar(self) -> tuple[int, int, int]: ...