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