reorder-python-imports 3.12.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.12.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.12.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.12.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.12.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.12.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.8.0
424
+ # typing-extensions==4.12.2
425
425
  REPLACES[(3, 6)].update((
426
426
  'typing_extensions=typing:AbstractSet',
427
427
  'typing_extensions=typing:AnyStr',
@@ -433,12 +433,10 @@ REPLACES[(3, 6)].update((
433
433
  'typing_extensions=typing:ClassVar',
434
434
  'typing_extensions=typing:Collection',
435
435
  'typing_extensions=typing:Container',
436
- 'typing_extensions=typing:ContextManager',
437
436
  'typing_extensions=typing:Coroutine',
438
437
  'typing_extensions=typing:DefaultDict',
439
438
  'typing_extensions=typing:Dict',
440
439
  'typing_extensions=typing:FrozenSet',
441
- 'typing_extensions=typing:Generator',
442
440
  'typing_extensions=typing:Generic',
443
441
  'typing_extensions=typing:Hashable',
444
442
  'typing_extensions=typing:IO',
@@ -472,8 +470,6 @@ REPLACES[(3, 6)].update((
472
470
  ))
473
471
  REPLACES[(3, 7)].update((
474
472
  'mypy_extensions=typing:NoReturn',
475
- 'typing_extensions=typing:AsyncContextManager',
476
- 'typing_extensions=typing:AsyncGenerator',
477
473
  'typing_extensions=typing:ChainMap',
478
474
  'typing_extensions=typing:Counter',
479
475
  'typing_extensions=typing:Deque',
@@ -484,8 +480,6 @@ REPLACES[(3, 8)].update((
484
480
  'mypy_extensions=typing:TypedDict',
485
481
  'typing_extensions=typing:Final',
486
482
  'typing_extensions=typing:OrderedDict',
487
- 'typing_extensions=typing:SupportsIndex',
488
- 'typing_extensions=typing:runtime_checkable',
489
483
  ))
490
484
  REPLACES[(3, 9)].update((
491
485
  'typing_extensions=typing:Annotated',
@@ -520,19 +514,35 @@ REPLACES[(3, 11)].update((
520
514
  ))
521
515
  REPLACES[(3, 12)].update((
522
516
  'typing_extensions=typing:NamedTuple',
523
- 'typing_extensions=typing:Protocol',
524
517
  'typing_extensions=typing:SupportsAbs',
525
518
  'typing_extensions=typing:SupportsBytes',
526
519
  'typing_extensions=typing:SupportsComplex',
527
520
  'typing_extensions=typing:SupportsFloat',
521
+ 'typing_extensions=typing:SupportsIndex',
528
522
  'typing_extensions=typing:SupportsInt',
529
523
  'typing_extensions=typing:SupportsRound',
530
524
  'typing_extensions=typing:TypeAliasType',
531
- 'typing_extensions=typing:TypedDict',
532
525
  'typing_extensions=typing:Unpack',
533
526
  'typing_extensions=typing:dataclass_transform',
534
527
  'typing_extensions=typing:override',
535
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
+ ))
536
546
  # END GENERATED
537
547
 
538
548
  # GENERATED VIA generate-typing-pep585-rewrites
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = reorder_python_imports
3
- version = 3.12.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