mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Improve several __hash__ methods (#8128)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user