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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: reorder_python_imports
3
- Version: 3.13.0
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
  [![build status](https://github.com/asottile/reorder-python-imports/actions/workflows/main.yml/badge.svg)](https://github.com/asottile/reorder-python-imports/actions/workflows/main.yml)
19
20
  [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/asottile/reorder-python-imports/main.svg)](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.13.0
65
+ rev: v3.14.0
65
66
  hooks:
66
67
  - id: reorder-python-imports
67
68
  ```
@@ -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.13.0
47
+ rev: v3.14.0
48
48
  hooks:
49
49
  - id: reorder-python-imports
50
50
  ```
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
- Name: reorder-python-imports
3
- Version: 3.13.0
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
  [![build status](https://github.com/asottile/reorder-python-imports/actions/workflows/main.yml/badge.svg)](https://github.com/asottile/reorder-python-imports/actions/workflows/main.yml)
19
20
  [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/asottile/reorder-python-imports/main.svg)](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.13.0
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], None, None]:
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, None, None]:
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.15.0
422
+ # flake8-typing-imports==1.16.0
423
423
  # mypy-extensions==1.0.0
424
- # typing-extensions==4.12.1
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
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = reorder_python_imports
3
- version = 3.13.0
3
+ version = 3.14.0
4
4
  description = Tool for reordering python imports
5
5
  long_description = file: README.md
6
6
  long_description_content_type = text/markdown