|
21 | 21 | from pyupgrade._token_helpers import indented_amount
|
22 | 22 |
|
23 | 23 | # GENERATED VIA generate-imports
|
24 |
| -# Using reorder-python-imports==3.11.0 |
| 24 | +# Using reorder-python-imports==3.12.0 |
25 | 25 | REMOVALS = {
|
26 | 26 | (3,): {
|
27 | 27 | '__future__': {
|
|
89 | 89 | ('six.moves.urllib', 'robotparser'): 'urllib',
|
90 | 90 | },
|
91 | 91 | (3, 6): {
|
| 92 | + ('typing_extensions', 'AbstractSet'): 'typing', |
| 93 | + ('typing_extensions', 'AnyStr'): 'typing', |
92 | 94 | ('typing_extensions', 'AsyncIterable'): 'typing',
|
93 | 95 | ('typing_extensions', 'AsyncIterator'): 'typing',
|
94 | 96 | ('typing_extensions', 'Awaitable'): 'typing',
|
| 97 | + ('typing_extensions', 'BinaryIO'): 'typing', |
| 98 | + ('typing_extensions', 'Callable'): 'typing', |
95 | 99 | ('typing_extensions', 'ClassVar'): 'typing',
|
| 100 | + ('typing_extensions', 'Collection'): 'typing', |
| 101 | + ('typing_extensions', 'Container'): 'typing', |
96 | 102 | ('typing_extensions', 'ContextManager'): 'typing',
|
97 | 103 | ('typing_extensions', 'Coroutine'): 'typing',
|
98 | 104 | ('typing_extensions', 'DefaultDict'): 'typing',
|
| 105 | + ('typing_extensions', 'Dict'): 'typing', |
| 106 | + ('typing_extensions', 'FrozenSet'): 'typing', |
| 107 | + ('typing_extensions', 'Generator'): 'typing', |
| 108 | + ('typing_extensions', 'Generic'): 'typing', |
| 109 | + ('typing_extensions', 'Hashable'): 'typing', |
| 110 | + ('typing_extensions', 'IO'): 'typing', |
| 111 | + ('typing_extensions', 'ItemsView'): 'typing', |
| 112 | + ('typing_extensions', 'Iterable'): 'typing', |
| 113 | + ('typing_extensions', 'Iterator'): 'typing', |
| 114 | + ('typing_extensions', 'KeysView'): 'typing', |
| 115 | + ('typing_extensions', 'List'): 'typing', |
| 116 | + ('typing_extensions', 'Mapping'): 'typing', |
| 117 | + ('typing_extensions', 'MappingView'): 'typing', |
| 118 | + ('typing_extensions', 'Match'): 'typing', |
| 119 | + ('typing_extensions', 'MutableMapping'): 'typing', |
| 120 | + ('typing_extensions', 'MutableSequence'): 'typing', |
| 121 | + ('typing_extensions', 'MutableSet'): 'typing', |
| 122 | + ('typing_extensions', 'Optional'): 'typing', |
| 123 | + ('typing_extensions', 'Pattern'): 'typing', |
| 124 | + ('typing_extensions', 'Reversible'): 'typing', |
| 125 | + ('typing_extensions', 'Sequence'): 'typing', |
| 126 | + ('typing_extensions', 'Set'): 'typing', |
| 127 | + ('typing_extensions', 'Sized'): 'typing', |
99 | 128 | ('typing_extensions', 'TYPE_CHECKING'): 'typing',
|
100 | 129 | ('typing_extensions', 'Text'): 'typing',
|
| 130 | + ('typing_extensions', 'TextIO'): 'typing', |
| 131 | + ('typing_extensions', 'Tuple'): 'typing', |
101 | 132 | ('typing_extensions', 'Type'): 'typing',
|
| 133 | + ('typing_extensions', 'Union'): 'typing', |
| 134 | + ('typing_extensions', 'ValuesView'): 'typing', |
| 135 | + ('typing_extensions', 'cast'): 'typing', |
| 136 | + ('typing_extensions', 'no_type_check'): 'typing', |
| 137 | + ('typing_extensions', 'no_type_check_decorator'): 'typing', |
102 | 138 | },
|
103 | 139 | (3, 7): {
|
104 | 140 | ('mypy_extensions', 'NoReturn'): 'typing',
|
|
107 | 143 | ('typing_extensions', 'ChainMap'): 'typing',
|
108 | 144 | ('typing_extensions', 'Counter'): 'typing',
|
109 | 145 | ('typing_extensions', 'Deque'): 'typing',
|
| 146 | + ('typing_extensions', 'ForwardRef'): 'typing', |
110 | 147 | ('typing_extensions', 'NoReturn'): 'typing',
|
111 | 148 | },
|
112 | 149 | (3, 8): {
|
|
178 | 215 | ('typing_extensions', 'overload'): 'typing',
|
179 | 216 | ('typing_extensions', 'reveal_type'): 'typing',
|
180 | 217 | },
|
| 218 | + (3, 12): { |
| 219 | + ('typing_extensions', 'NamedTuple'): 'typing', |
| 220 | + ('typing_extensions', 'Protocol'): 'typing', |
| 221 | + ('typing_extensions', 'SupportsAbs'): 'typing', |
| 222 | + ('typing_extensions', 'SupportsBytes'): 'typing', |
| 223 | + ('typing_extensions', 'SupportsComplex'): 'typing', |
| 224 | + ('typing_extensions', 'SupportsFloat'): 'typing', |
| 225 | + ('typing_extensions', 'SupportsInt'): 'typing', |
| 226 | + ('typing_extensions', 'SupportsRound'): 'typing', |
| 227 | + ('typing_extensions', 'TypeAliasType'): 'typing', |
| 228 | + ('typing_extensions', 'TypedDict'): 'typing', |
| 229 | + ('typing_extensions', 'Unpack'): 'typing', |
| 230 | + ('typing_extensions', 'dataclass_transform'): 'typing', |
| 231 | + ('typing_extensions', 'override'): 'typing', |
| 232 | + }, |
181 | 233 | }
|
182 | 234 | REPLACE_MODS = {
|
183 | 235 | 'six.moves.BaseHTTPServer': 'http.server',
|
|
0 commit comments