|
1 | 1 | import sys |
2 | 2 | from _collections_abc import dict_items, dict_keys, dict_values |
3 | 3 | from _typeshed import SupportsItems, SupportsKeysAndGetItem, SupportsRichComparison, SupportsRichComparisonT |
4 | | -from typing import Any, Generic, NoReturn, SupportsIndex, TypeVar, final, overload |
| 4 | +from typing import Any, ClassVar, Generic, NoReturn, SupportsIndex, TypeVar, final, overload |
5 | 5 | from typing_extensions import Self |
6 | 6 |
|
7 | 7 | if sys.version_info >= (3, 9): |
@@ -119,6 +119,7 @@ class UserList(MutableSequence[_T]): |
119 | 119 | def __init__(self, initlist: None = None) -> None: ... |
120 | 120 | @overload |
121 | 121 | def __init__(self, initlist: Iterable[_T]) -> None: ... |
| 122 | + __hash__: ClassVar[None] # type: ignore[assignment] |
122 | 123 | def __lt__(self, other: list[_T] | UserList[_T]) -> bool: ... |
123 | 124 | def __le__(self, other: list[_T] | UserList[_T]) -> bool: ... |
124 | 125 | def __gt__(self, other: list[_T] | UserList[_T]) -> bool: ... |
@@ -254,6 +255,7 @@ class deque(MutableSequence[_T]): |
254 | 255 | def rotate(self, n: int = 1, /) -> None: ... |
255 | 256 | def __copy__(self) -> Self: ... |
256 | 257 | def __len__(self) -> int: ... |
| 258 | + __hash__: ClassVar[None] # type: ignore[assignment] |
257 | 259 | # These methods of deque don't take slices, unlike MutableSequence, hence the type: ignores |
258 | 260 | def __getitem__(self, key: SupportsIndex, /) -> _T: ... # type: ignore[override] |
259 | 261 | def __setitem__(self, key: SupportsIndex, value: _T, /) -> None: ... # type: ignore[override] |
|
0 commit comments