|
1 | 1 | import sys
|
2 | 2 | from _typeshed import Self
|
| 3 | +from builtins import _dict_items, _dict_keys, _dict_values |
3 | 4 | from typing import Any, Dict, Generic, NoReturn, Tuple, Type, TypeVar, overload
|
4 | 5 |
|
5 | 6 | if sys.version_info >= (3, 10):
|
@@ -247,13 +248,13 @@ class Counter(Dict[_T, int], Generic[_T]):
|
247 | 248 | def __iand__(self, other: Counter[_T]) -> Counter[_T]: ...
|
248 | 249 | def __ior__(self, other: Counter[_T]) -> Counter[_T]: ... # type: ignore
|
249 | 250 |
|
250 |
| -class _OrderedDictKeysView(KeysView[_KT], Reversible[_KT]): |
| 251 | +class _OrderedDictKeysView(_dict_keys[_KT, _KT], Reversible[_KT]): |
251 | 252 | def __reversed__(self) -> Iterator[_KT]: ...
|
252 | 253 |
|
253 |
| -class _OrderedDictItemsView(ItemsView[_KT, _VT], Reversible[Tuple[_KT, _VT]]): |
| 254 | +class _OrderedDictItemsView(_dict_items[_KT, _VT], Reversible[Tuple[_KT, _VT]]): |
254 | 255 | def __reversed__(self) -> Iterator[Tuple[_KT, _VT]]: ...
|
255 | 256 |
|
256 |
| -class _OrderedDictValuesView(ValuesView[_VT], Reversible[_VT]): |
| 257 | +class _OrderedDictValuesView(_dict_values[_KT, _VT], Reversible[_VT]): |
257 | 258 | def __reversed__(self) -> Iterator[_VT]: ...
|
258 | 259 |
|
259 | 260 | class OrderedDict(Dict[_KT, _VT], Reversible[_KT], Generic[_KT, _VT]):
|
|
0 commit comments