Improve several __hash__ methods (#8128)

This commit is contained in:
Alex Waygood
2022-06-22 11:58:00 +01:00
committed by GitHub
parent 9eed3275c3
commit 89f4dee452
9 changed files with 26 additions and 25 deletions

View File

@@ -3,7 +3,7 @@ import sys
from _typeshed import Self
from collections.abc import Container, Sequence
from types import TracebackType
from typing import Any, NamedTuple, Union, overload
from typing import Any, ClassVar, NamedTuple, Union, overload
from typing_extensions import TypeAlias
_Decimal: TypeAlias = Decimal | int
@@ -209,7 +209,8 @@ class Context:
def clear_traps(self) -> None: ...
def copy(self) -> Context: ...
def __copy__(self) -> Context: ...
__hash__: Any
# see https://github.com/python/cpython/issues/94107
__hash__: ClassVar[None] # type: ignore[assignment]
def Etiny(self) -> int: ...
def Etop(self) -> int: ...
def create_decimal(self, __num: _DecimalNew = ...) -> Decimal: ...