massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / _collections_abc.pyi
1 import sys
2 from types import MappingProxyType
3 from typing import (
4     AbstractSet as Set,
5     AsyncGenerator as AsyncGenerator,
6     AsyncIterable as AsyncIterable,
7     AsyncIterator as AsyncIterator,
8     Awaitable as Awaitable,
9     ByteString as ByteString,
10     Callable as Callable,
11     Collection as Collection,
12     Container as Container,
13     Coroutine as Coroutine,
14     Generator as Generator,
15     Generic,
16     Hashable as Hashable,
17     ItemsView as ItemsView,
18     Iterable as Iterable,
19     Iterator as Iterator,
20     KeysView as KeysView,
21     Mapping as Mapping,
22     MappingView as MappingView,
23     MutableMapping as MutableMapping,
24     MutableSequence as MutableSequence,
25     MutableSet as MutableSet,
26     Reversible as Reversible,
27     Sequence as Sequence,
28     Sized as Sized,
29     TypeVar,
30     ValuesView as ValuesView,
31 )
32 from typing_extensions import final
33
34 __all__ = [
35     "Awaitable",
36     "Coroutine",
37     "AsyncIterable",
38     "AsyncIterator",
39     "AsyncGenerator",
40     "Hashable",
41     "Iterable",
42     "Iterator",
43     "Generator",
44     "Reversible",
45     "Sized",
46     "Container",
47     "Callable",
48     "Collection",
49     "Set",
50     "MutableSet",
51     "Mapping",
52     "MutableMapping",
53     "MappingView",
54     "KeysView",
55     "ItemsView",
56     "ValuesView",
57     "Sequence",
58     "MutableSequence",
59     "ByteString",
60 ]
61
62 _KT_co = TypeVar("_KT_co", covariant=True)  # Key type covariant containers.
63 _VT_co = TypeVar("_VT_co", covariant=True)  # Value type covariant containers.
64
65 @final
66 class dict_keys(KeysView[_KT_co], Generic[_KT_co, _VT_co]):  # undocumented
67     if sys.version_info >= (3, 10):
68         mapping: MappingProxyType[_KT_co, _VT_co]
69
70 @final
71 class dict_values(ValuesView[_VT_co], Generic[_KT_co, _VT_co]):  # undocumented
72     if sys.version_info >= (3, 10):
73         mapping: MappingProxyType[_KT_co, _VT_co]
74
75 @final
76 class dict_items(ItemsView[_KT_co, _VT_co], Generic[_KT_co, _VT_co]):  # undocumented
77     if sys.version_info >= (3, 10):
78         mapping: MappingProxyType[_KT_co, _VT_co]