|
54 | 54 | ] |
55 | 55 |
|
56 | 56 | __all__ = [ |
57 | | - 'OptionalScope', |
58 | | - 'Number', |
59 | | - 'DecimalNumber', |
60 | | - 'delta_type', |
61 | | - 'timestamp_type', |
| 57 | + 'IO', |
| 58 | + 'TYPE_CHECKING', |
| 59 | + # ABCs (from collections.abc). |
| 60 | + 'AbstractSet', |
62 | 61 | # The types from the typing module. |
63 | 62 | # Super-special typing primitives. |
64 | 63 | 'Annotated', |
65 | 64 | 'Any', |
| 65 | + # One-off things. |
| 66 | + 'AnyStr', |
| 67 | + 'AsyncContextManager', |
| 68 | + 'AsyncGenerator', |
| 69 | + 'AsyncGeneratorType', |
| 70 | + 'AsyncIterable', |
| 71 | + 'AsyncIterator', |
| 72 | + 'Awaitable', |
| 73 | + # Other concrete types. |
| 74 | + 'BinaryIO', |
| 75 | + 'BuiltinFunctionType', |
| 76 | + 'BuiltinMethodType', |
| 77 | + 'ByteString', |
66 | 78 | 'Callable', |
| 79 | + # Concrete collection types. |
| 80 | + 'ChainMap', |
| 81 | + 'ClassMethodDescriptorType', |
67 | 82 | 'ClassVar', |
| 83 | + 'CodeType', |
| 84 | + 'Collection', |
68 | 85 | 'Concatenate', |
| 86 | + 'Container', |
| 87 | + 'ContextManager', |
| 88 | + 'Coroutine', |
| 89 | + 'CoroutineType', |
| 90 | + 'Counter', |
| 91 | + 'DecimalNumber', |
| 92 | + 'DefaultDict', |
| 93 | + 'Deque', |
| 94 | + 'Dict', |
| 95 | + 'DynamicClassAttribute', |
69 | 96 | 'Final', |
70 | 97 | 'ForwardRef', |
| 98 | + 'FrameType', |
| 99 | + 'FrozenSet', |
| 100 | + # Types from the `types` module. |
| 101 | + 'FunctionType', |
| 102 | + 'Generator', |
| 103 | + 'GeneratorType', |
71 | 104 | 'Generic', |
72 | | - 'Literal', |
73 | | - 'SupportsIndex', |
74 | | - 'Optional', |
75 | | - 'ParamSpec', |
76 | | - 'ParamSpecArgs', |
77 | | - 'ParamSpecKwargs', |
78 | | - 'Protocol', |
79 | | - 'Tuple', |
80 | | - 'Type', |
81 | | - 'TypeVar', |
82 | | - 'Union', |
83 | | - # ABCs (from collections.abc). |
84 | | - 'AbstractSet', |
85 | | - 'ByteString', |
86 | | - 'Container', |
87 | | - 'ContextManager', |
| 105 | + 'GetSetDescriptorType', |
88 | 106 | 'Hashable', |
89 | 107 | 'ItemsView', |
90 | 108 | 'Iterable', |
91 | 109 | 'Iterator', |
92 | 110 | 'KeysView', |
| 111 | + 'LambdaType', |
| 112 | + 'List', |
| 113 | + 'Literal', |
93 | 114 | 'Mapping', |
| 115 | + 'MappingProxyType', |
94 | 116 | 'MappingView', |
| 117 | + 'Match', |
| 118 | + 'MemberDescriptorType', |
| 119 | + 'MethodDescriptorType', |
| 120 | + 'MethodType', |
| 121 | + 'MethodWrapperType', |
| 122 | + 'ModuleType', |
95 | 123 | 'MutableMapping', |
96 | 124 | 'MutableSequence', |
97 | 125 | 'MutableSet', |
98 | | - 'Sequence', |
99 | | - 'Sized', |
100 | | - 'ValuesView', |
101 | | - 'Awaitable', |
102 | | - 'AsyncIterator', |
103 | | - 'AsyncIterable', |
104 | | - 'Coroutine', |
105 | | - 'Collection', |
106 | | - 'AsyncGenerator', |
107 | | - 'AsyncContextManager', |
| 126 | + 'NamedTuple', # Not really a type. |
| 127 | + 'NewType', |
| 128 | + 'NoReturn', |
| 129 | + 'Number', |
| 130 | + 'Optional', |
| 131 | + 'OptionalScope', |
| 132 | + 'OrderedDict', |
| 133 | + 'ParamSpec', |
| 134 | + 'ParamSpecArgs', |
| 135 | + 'ParamSpecKwargs', |
| 136 | + 'Pattern', |
| 137 | + 'Protocol', |
108 | 138 | # Structural checks, a.k.a. protocols. |
109 | 139 | 'Reversible', |
| 140 | + 'Sequence', |
| 141 | + 'Set', |
| 142 | + 'SimpleNamespace', |
| 143 | + 'Sized', |
110 | 144 | 'SupportsAbs', |
111 | 145 | 'SupportsBytes', |
112 | 146 | 'SupportsComplex', |
113 | 147 | 'SupportsFloat', |
114 | 148 | 'SupportsIndex', |
| 149 | + 'SupportsIndex', |
115 | 150 | 'SupportsInt', |
116 | 151 | 'SupportsRound', |
117 | | - # Concrete collection types. |
118 | | - 'ChainMap', |
119 | | - 'Counter', |
120 | | - 'Deque', |
121 | | - 'Dict', |
122 | | - 'DefaultDict', |
123 | | - 'List', |
124 | | - 'OrderedDict', |
125 | | - 'Set', |
126 | | - 'FrozenSet', |
127 | | - 'NamedTuple', # Not really a type. |
128 | | - 'TypedDict', # Not really a type. |
129 | | - 'Generator', |
130 | | - # Other concrete types. |
131 | | - 'BinaryIO', |
132 | | - 'IO', |
133 | | - 'Match', |
134 | | - 'Pattern', |
| 152 | + 'Text', |
135 | 153 | 'TextIO', |
136 | | - # One-off things. |
137 | | - 'AnyStr', |
| 154 | + 'TracebackType', |
| 155 | + 'TracebackType', |
| 156 | + 'Tuple', |
| 157 | + 'Type', |
| 158 | + 'TypeAlias', |
| 159 | + 'TypeGuard', |
| 160 | + 'TypeVar', |
| 161 | + 'TypedDict', # Not really a type. |
| 162 | + 'Union', |
| 163 | + 'ValuesView', |
| 164 | + 'WrapperDescriptorType', |
138 | 165 | 'cast', |
| 166 | + 'coroutine', |
| 167 | + 'delta_type', |
139 | 168 | 'final', |
140 | 169 | 'get_args', |
141 | 170 | 'get_origin', |
142 | 171 | 'get_type_hints', |
143 | 172 | 'is_typeddict', |
144 | | - 'NewType', |
| 173 | + 'new_class', |
145 | 174 | 'no_type_check', |
146 | 175 | 'no_type_check_decorator', |
147 | | - 'NoReturn', |
148 | 176 | 'overload', |
149 | | - 'runtime_checkable', |
150 | | - 'Text', |
151 | | - 'TYPE_CHECKING', |
152 | | - 'TypeAlias', |
153 | | - 'TypeGuard', |
154 | | - 'TracebackType', |
155 | | - # Types from the `types` module. |
156 | | - 'FunctionType', |
157 | | - 'LambdaType', |
158 | | - 'CodeType', |
159 | | - 'MappingProxyType', |
160 | | - 'SimpleNamespace', |
161 | | - 'GeneratorType', |
162 | | - 'CoroutineType', |
163 | | - 'AsyncGeneratorType', |
164 | | - 'MethodType', |
165 | | - 'BuiltinFunctionType', |
166 | | - 'BuiltinMethodType', |
167 | | - 'WrapperDescriptorType', |
168 | | - 'MethodWrapperType', |
169 | | - 'MethodDescriptorType', |
170 | | - 'ClassMethodDescriptorType', |
171 | | - 'ModuleType', |
172 | | - 'TracebackType', |
173 | | - 'FrameType', |
174 | | - 'GetSetDescriptorType', |
175 | | - 'MemberDescriptorType', |
176 | | - 'new_class', |
177 | | - 'resolve_bases', |
178 | 177 | 'prepare_class', |
179 | | - 'DynamicClassAttribute', |
180 | | - 'coroutine', |
| 178 | + 'resolve_bases', |
| 179 | + 'runtime_checkable', |
| 180 | + 'timestamp_type', |
181 | 181 | ] |
0 commit comments