mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Remove un-needed __hash__ methods from stdlib (#8465)
This commit is contained in:
@@ -29,7 +29,6 @@ class timezone(tzinfo):
|
||||
min: ClassVar[timezone]
|
||||
max: ClassVar[timezone]
|
||||
def __init__(self, offset: timedelta, name: str = ...) -> None: ...
|
||||
def __hash__(self) -> int: ...
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
UTC: timezone
|
||||
@@ -94,7 +93,6 @@ class date:
|
||||
@overload
|
||||
def __sub__(self, __other: date) -> timedelta: ...
|
||||
|
||||
def __hash__(self) -> int: ...
|
||||
def weekday(self) -> int: ...
|
||||
def isoweekday(self) -> int: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
@@ -132,7 +130,6 @@ class time:
|
||||
def __lt__(self, __other: time) -> bool: ...
|
||||
def __ge__(self, __other: time) -> bool: ...
|
||||
def __gt__(self, __other: time) -> bool: ...
|
||||
def __hash__(self) -> int: ...
|
||||
def isoformat(self, timespec: str = ...) -> str: ...
|
||||
@classmethod
|
||||
def fromisoformat(cls: type[Self], __time_string: str) -> Self: ...
|
||||
@@ -200,7 +197,6 @@ class timedelta(SupportsAbs[timedelta]):
|
||||
def __ge__(self, __other: timedelta) -> bool: ...
|
||||
def __gt__(self, __other: timedelta) -> bool: ...
|
||||
def __bool__(self) -> bool: ...
|
||||
def __hash__(self) -> int: ...
|
||||
|
||||
class datetime(date):
|
||||
min: ClassVar[datetime]
|
||||
|
||||
Reference in New Issue
Block a user