diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index 8a4a9829c..fee4ccc50 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -948,7 +948,10 @@ class slice: @overload def __new__(cls, start: Any, stop: Any, step: Any = ..., /) -> Self: ... def __eq__(self, value: object, /) -> bool: ... - __hash__: ClassVar[None] # type: ignore[assignment] + if sys.version_info >= (3, 12): + def __hash__(self) -> int: ... + else: + __hash__: ClassVar[None] # type: ignore[assignment] def indices(self, len: SupportsIndex, /) -> tuple[int, int, int]: ... class tuple(Sequence[_T_co]):