Remove un-needed __hash__ methods from stdlib (#8465)

This commit is contained in:
Nikita Sobolev
2022-08-06 16:55:27 +03:00
committed by GitHub
parent ac86defef7
commit 64bc0590a6
12 changed files with 0 additions and 21 deletions

View File

@@ -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]