reorder-python-imports 3.14.0__tar.gz → 3.16.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {reorder_python_imports-3.14.0 → reorder_python_imports-3.16.0}/PKG-INFO +12 -4
- {reorder_python_imports-3.14.0 → reorder_python_imports-3.16.0}/README.md +10 -1
- {reorder_python_imports-3.14.0 → reorder_python_imports-3.16.0}/reorder_python_imports.egg-info/PKG-INFO +12 -4
- {reorder_python_imports-3.14.0 → reorder_python_imports-3.16.0}/reorder_python_imports.py +10 -5
- {reorder_python_imports-3.14.0 → reorder_python_imports-3.16.0}/setup.cfg +2 -3
- {reorder_python_imports-3.14.0 → reorder_python_imports-3.16.0}/LICENSE +0 -0
- {reorder_python_imports-3.14.0 → reorder_python_imports-3.16.0}/reorder_python_imports.egg-info/SOURCES.txt +0 -0
- {reorder_python_imports-3.14.0 → reorder_python_imports-3.16.0}/reorder_python_imports.egg-info/dependency_links.txt +0 -0
- {reorder_python_imports-3.14.0 → reorder_python_imports-3.16.0}/reorder_python_imports.egg-info/entry_points.txt +0 -0
- {reorder_python_imports-3.14.0 → reorder_python_imports-3.16.0}/reorder_python_imports.egg-info/requires.txt +0 -0
- {reorder_python_imports-3.14.0 → reorder_python_imports-3.16.0}/reorder_python_imports.egg-info/top_level.txt +0 -0
- {reorder_python_imports-3.14.0 → reorder_python_imports-3.16.0}/setup.py +0 -0
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: reorder_python_imports
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.16.0
|
|
4
4
|
Summary: Tool for reordering python imports
|
|
5
5
|
Home-page: https://github.com/asottile/reorder-python-imports
|
|
6
6
|
Author: Anthony Sottile
|
|
7
7
|
Author-email: asottile@umich.edu
|
|
8
8
|
License: MIT
|
|
9
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
10
9
|
Classifier: Programming Language :: Python :: 3
|
|
11
10
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
12
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
13
12
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
14
|
-
Requires-Python: >=3.
|
|
13
|
+
Requires-Python: >=3.9
|
|
15
14
|
Description-Content-Type: text/markdown
|
|
16
15
|
License-File: LICENSE
|
|
17
16
|
Requires-Dist: classify-imports>=4.1
|
|
@@ -62,7 +61,7 @@ Sample `.pre-commit-config.yaml`
|
|
|
62
61
|
|
|
63
62
|
```yaml
|
|
64
63
|
- repo: https://github.com/asottile/reorder-python-imports
|
|
65
|
-
rev: v3.
|
|
64
|
+
rev: v3.16.0
|
|
66
65
|
hooks:
|
|
67
66
|
- id: reorder-python-imports
|
|
68
67
|
```
|
|
@@ -147,6 +146,15 @@ except ImportError:
|
|
|
147
146
|
pass
|
|
148
147
|
```
|
|
149
148
|
|
|
149
|
+
```python
|
|
150
|
+
from typing import TYPE_CHECKING
|
|
151
|
+
|
|
152
|
+
if TYPE_CHECKING:
|
|
153
|
+
# all these imports are after non-whitspace non-comment lines
|
|
154
|
+
# and will be ignored (i.e. they will remain out of order)
|
|
155
|
+
from collections.abc import Sequence
|
|
156
|
+
from collections.abc import Callable
|
|
157
|
+
```
|
|
150
158
|
|
|
151
159
|
```python
|
|
152
160
|
import sys
|
|
@@ -44,7 +44,7 @@ Sample `.pre-commit-config.yaml`
|
|
|
44
44
|
|
|
45
45
|
```yaml
|
|
46
46
|
- repo: https://github.com/asottile/reorder-python-imports
|
|
47
|
-
rev: v3.
|
|
47
|
+
rev: v3.16.0
|
|
48
48
|
hooks:
|
|
49
49
|
- id: reorder-python-imports
|
|
50
50
|
```
|
|
@@ -129,6 +129,15 @@ except ImportError:
|
|
|
129
129
|
pass
|
|
130
130
|
```
|
|
131
131
|
|
|
132
|
+
```python
|
|
133
|
+
from typing import TYPE_CHECKING
|
|
134
|
+
|
|
135
|
+
if TYPE_CHECKING:
|
|
136
|
+
# all these imports are after non-whitspace non-comment lines
|
|
137
|
+
# and will be ignored (i.e. they will remain out of order)
|
|
138
|
+
from collections.abc import Sequence
|
|
139
|
+
from collections.abc import Callable
|
|
140
|
+
```
|
|
132
141
|
|
|
133
142
|
```python
|
|
134
143
|
import sys
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: reorder_python_imports
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.16.0
|
|
4
4
|
Summary: Tool for reordering python imports
|
|
5
5
|
Home-page: https://github.com/asottile/reorder-python-imports
|
|
6
6
|
Author: Anthony Sottile
|
|
7
7
|
Author-email: asottile@umich.edu
|
|
8
8
|
License: MIT
|
|
9
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
10
9
|
Classifier: Programming Language :: Python :: 3
|
|
11
10
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
12
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
13
12
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
14
|
-
Requires-Python: >=3.
|
|
13
|
+
Requires-Python: >=3.9
|
|
15
14
|
Description-Content-Type: text/markdown
|
|
16
15
|
License-File: LICENSE
|
|
17
16
|
Requires-Dist: classify-imports>=4.1
|
|
@@ -62,7 +61,7 @@ Sample `.pre-commit-config.yaml`
|
|
|
62
61
|
|
|
63
62
|
```yaml
|
|
64
63
|
- repo: https://github.com/asottile/reorder-python-imports
|
|
65
|
-
rev: v3.
|
|
64
|
+
rev: v3.16.0
|
|
66
65
|
hooks:
|
|
67
66
|
- id: reorder-python-imports
|
|
68
67
|
```
|
|
@@ -147,6 +146,15 @@ except ImportError:
|
|
|
147
146
|
pass
|
|
148
147
|
```
|
|
149
148
|
|
|
149
|
+
```python
|
|
150
|
+
from typing import TYPE_CHECKING
|
|
151
|
+
|
|
152
|
+
if TYPE_CHECKING:
|
|
153
|
+
# all these imports are after non-whitspace non-comment lines
|
|
154
|
+
# and will be ignored (i.e. they will remain out of order)
|
|
155
|
+
from collections.abc import Sequence
|
|
156
|
+
from collections.abc import Callable
|
|
157
|
+
```
|
|
150
158
|
|
|
151
159
|
```python
|
|
152
160
|
import sys
|
|
@@ -9,9 +9,9 @@ import itertools
|
|
|
9
9
|
import os
|
|
10
10
|
import re
|
|
11
11
|
import sys
|
|
12
|
-
from
|
|
12
|
+
from collections.abc import Generator
|
|
13
|
+
from collections.abc import Sequence
|
|
13
14
|
from typing import NamedTuple
|
|
14
|
-
from typing import Sequence
|
|
15
15
|
|
|
16
16
|
from classify_imports import Import
|
|
17
17
|
from classify_imports import import_obj_from_str
|
|
@@ -415,13 +415,14 @@ REMOVALS[(3,)].update((
|
|
|
415
415
|
'from __future__ import unicode_literals',
|
|
416
416
|
))
|
|
417
417
|
REMOVALS[(3, 7)].add('from __future__ import generator_stop')
|
|
418
|
+
REMOVALS[(3, 14)].add('from __future__ import annotations')
|
|
418
419
|
# END GENERATED
|
|
419
420
|
|
|
420
421
|
# GENERATED VIA generate-typing-rewrite-info
|
|
421
422
|
# Using:
|
|
422
|
-
# flake8-typing-imports==1.
|
|
423
|
-
# mypy-extensions==1.
|
|
424
|
-
# typing-extensions==4.
|
|
423
|
+
# flake8-typing-imports==1.17.0
|
|
424
|
+
# mypy-extensions==1.1.0
|
|
425
|
+
# typing-extensions==4.15.0
|
|
425
426
|
REPLACES[(3, 6)].update((
|
|
426
427
|
'typing_extensions=typing:AbstractSet',
|
|
427
428
|
'typing_extensions=typing:AnyStr',
|
|
@@ -542,6 +543,10 @@ REPLACES[(3, 13)].update((
|
|
|
542
543
|
'typing_extensions=typing:get_protocol_members',
|
|
543
544
|
'typing_extensions=typing:is_protocol',
|
|
544
545
|
'typing_extensions=typing:runtime_checkable',
|
|
546
|
+
'typing_extensions=warnings:deprecated',
|
|
547
|
+
))
|
|
548
|
+
REPLACES[(3, 14)].update((
|
|
549
|
+
'typing_extensions=typing:evaluate_forward_ref',
|
|
545
550
|
))
|
|
546
551
|
# END GENERATED
|
|
547
552
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = reorder_python_imports
|
|
3
|
-
version = 3.
|
|
3
|
+
version = 3.16.0
|
|
4
4
|
description = Tool for reordering python imports
|
|
5
5
|
long_description = file: README.md
|
|
6
6
|
long_description_content_type = text/markdown
|
|
@@ -10,7 +10,6 @@ author_email = asottile@umich.edu
|
|
|
10
10
|
license = MIT
|
|
11
11
|
license_files = LICENSE
|
|
12
12
|
classifiers =
|
|
13
|
-
License :: OSI Approved :: MIT License
|
|
14
13
|
Programming Language :: Python :: 3
|
|
15
14
|
Programming Language :: Python :: 3 :: Only
|
|
16
15
|
Programming Language :: Python :: Implementation :: CPython
|
|
@@ -20,7 +19,7 @@ classifiers =
|
|
|
20
19
|
py_modules = reorder_python_imports
|
|
21
20
|
install_requires =
|
|
22
21
|
classify-imports>=4.1
|
|
23
|
-
python_requires = >=3.
|
|
22
|
+
python_requires = >=3.9
|
|
24
23
|
|
|
25
24
|
[options.entry_points]
|
|
26
25
|
console_scripts =
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|