reorder-python-imports 3.13.0__tar.gz → 3.14.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.13.0 → reorder_python_imports-3.14.0}/PKG-INFO +3 -2
- {reorder_python_imports-3.13.0 → reorder_python_imports-3.14.0}/README.md +1 -1
- {reorder_python_imports-3.13.0 → reorder_python_imports-3.14.0}/reorder_python_imports.egg-info/PKG-INFO +4 -3
- {reorder_python_imports-3.13.0 → reorder_python_imports-3.14.0}/reorder_python_imports.py +21 -4
- {reorder_python_imports-3.13.0 → reorder_python_imports-3.14.0}/setup.cfg +1 -1
- {reorder_python_imports-3.13.0 → reorder_python_imports-3.14.0}/LICENSE +0 -0
- {reorder_python_imports-3.13.0 → reorder_python_imports-3.14.0}/reorder_python_imports.egg-info/SOURCES.txt +0 -0
- {reorder_python_imports-3.13.0 → reorder_python_imports-3.14.0}/reorder_python_imports.egg-info/dependency_links.txt +0 -0
- {reorder_python_imports-3.13.0 → reorder_python_imports-3.14.0}/reorder_python_imports.egg-info/entry_points.txt +0 -0
- {reorder_python_imports-3.13.0 → reorder_python_imports-3.14.0}/reorder_python_imports.egg-info/requires.txt +0 -0
- {reorder_python_imports-3.13.0 → reorder_python_imports-3.14.0}/reorder_python_imports.egg-info/top_level.txt +0 -0
- {reorder_python_imports-3.13.0 → reorder_python_imports-3.14.0}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: reorder_python_imports
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.14.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
|
|
@@ -14,6 +14,7 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
|
14
14
|
Requires-Python: >=3.8
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
License-File: LICENSE
|
|
17
|
+
Requires-Dist: classify-imports>=4.1
|
|
17
18
|
|
|
18
19
|
[](https://github.com/asottile/reorder-python-imports/actions/workflows/main.yml)
|
|
19
20
|
[](https://results.pre-commit.ci/latest/github/asottile/reorder-python-imports/main)
|
|
@@ -61,7 +62,7 @@ Sample `.pre-commit-config.yaml`
|
|
|
61
62
|
|
|
62
63
|
```yaml
|
|
63
64
|
- repo: https://github.com/asottile/reorder-python-imports
|
|
64
|
-
rev: v3.
|
|
65
|
+
rev: v3.14.0
|
|
65
66
|
hooks:
|
|
66
67
|
- id: reorder-python-imports
|
|
67
68
|
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name:
|
|
3
|
-
Version: 3.
|
|
2
|
+
Name: reorder_python_imports
|
|
3
|
+
Version: 3.14.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
|
|
@@ -14,6 +14,7 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
|
14
14
|
Requires-Python: >=3.8
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
License-File: LICENSE
|
|
17
|
+
Requires-Dist: classify-imports>=4.1
|
|
17
18
|
|
|
18
19
|
[](https://github.com/asottile/reorder-python-imports/actions/workflows/main.yml)
|
|
19
20
|
[](https://results.pre-commit.ci/latest/github/asottile/reorder-python-imports/main)
|
|
@@ -61,7 +62,7 @@ Sample `.pre-commit-config.yaml`
|
|
|
61
62
|
|
|
62
63
|
```yaml
|
|
63
64
|
- repo: https://github.com/asottile/reorder-python-imports
|
|
64
|
-
rev: v3.
|
|
65
|
+
rev: v3.14.0
|
|
65
66
|
hooks:
|
|
66
67
|
- id: reorder-python-imports
|
|
67
68
|
```
|
|
@@ -58,7 +58,7 @@ TOKENIZE: tuple[tuple[Tok, re.Pattern[str]], ...] = (
|
|
|
58
58
|
)
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
def _tokenize(s: str) -> Generator[tuple[Tok, str]
|
|
61
|
+
def _tokenize(s: str) -> Generator[tuple[Tok, str]]:
|
|
62
62
|
pos = 0
|
|
63
63
|
while True:
|
|
64
64
|
for tp, reg in TOKENIZE:
|
|
@@ -268,7 +268,7 @@ def replace_imports(
|
|
|
268
268
|
return ret
|
|
269
269
|
|
|
270
270
|
|
|
271
|
-
def _module_to_base_modules(s: str) -> Generator[str
|
|
271
|
+
def _module_to_base_modules(s: str) -> Generator[str]:
|
|
272
272
|
"""return all module names that would be imported due to this
|
|
273
273
|
import-import
|
|
274
274
|
"""
|
|
@@ -419,9 +419,9 @@ REMOVALS[(3, 7)].add('from __future__ import generator_stop')
|
|
|
419
419
|
|
|
420
420
|
# GENERATED VIA generate-typing-rewrite-info
|
|
421
421
|
# Using:
|
|
422
|
-
# flake8-typing-imports==1.
|
|
422
|
+
# flake8-typing-imports==1.16.0
|
|
423
423
|
# mypy-extensions==1.0.0
|
|
424
|
-
# typing-extensions==4.12.
|
|
424
|
+
# typing-extensions==4.12.2
|
|
425
425
|
REPLACES[(3, 6)].update((
|
|
426
426
|
'typing_extensions=typing:AbstractSet',
|
|
427
427
|
'typing_extensions=typing:AnyStr',
|
|
@@ -526,6 +526,23 @@ REPLACES[(3, 12)].update((
|
|
|
526
526
|
'typing_extensions=typing:dataclass_transform',
|
|
527
527
|
'typing_extensions=typing:override',
|
|
528
528
|
))
|
|
529
|
+
REPLACES[(3, 13)].update((
|
|
530
|
+
'typing_extensions=typing:AsyncContextManager',
|
|
531
|
+
'typing_extensions=typing:AsyncGenerator',
|
|
532
|
+
'typing_extensions=typing:ContextManager',
|
|
533
|
+
'typing_extensions=typing:Generator',
|
|
534
|
+
'typing_extensions=typing:NoDefault',
|
|
535
|
+
'typing_extensions=typing:ParamSpec',
|
|
536
|
+
'typing_extensions=typing:Protocol',
|
|
537
|
+
'typing_extensions=typing:ReadOnly',
|
|
538
|
+
'typing_extensions=typing:TypeIs',
|
|
539
|
+
'typing_extensions=typing:TypeVar',
|
|
540
|
+
'typing_extensions=typing:TypeVarTuple',
|
|
541
|
+
'typing_extensions=typing:TypedDict',
|
|
542
|
+
'typing_extensions=typing:get_protocol_members',
|
|
543
|
+
'typing_extensions=typing:is_protocol',
|
|
544
|
+
'typing_extensions=typing:runtime_checkable',
|
|
545
|
+
))
|
|
529
546
|
# END GENERATED
|
|
530
547
|
|
|
531
548
|
# GENERATED VIA generate-typing-pep585-rewrites
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|