diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8454566..ca56cec 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: rev: 4.0.1 hooks: - id: flake8 - additional_dependencies: ['flake8-typing-imports==1.7.0'] + additional_dependencies: ['flake8-typing-imports==1.12.0'] - repo: https://github.com/pre-commit/mirrors-autopep8 rev: v1.6.0 hooks: diff --git a/reorder_python_imports.py b/reorder_python_imports.py index e1c344e..36895fb 100644 --- a/reorder_python_imports.py +++ b/reorder_python_imports.py @@ -531,9 +531,9 @@ def _report_diff(contents: str, new_contents: str, filename: str) -> None: # GENERATED VIA generate-typing-rewrite-info # Using: -# flake8-typing-imports==1.10.1 +# flake8-typing-imports==1.12.0 # mypy_extensions==0.4.3 -# typing_extensions==3.7.4.3 +# typing_extensions==4.0.1 REPLACES[(3, 7)].update(( 'mypy_extensions=typing:NoReturn', )) @@ -565,6 +565,7 @@ def _report_diff(contents: str, new_contents: str, filename: str) -> None: REPLACES[(3, 8)].update(( 'typing_extensions=typing:Final', 'typing_extensions=typing:Literal', + 'typing_extensions=typing:OrderedDict', 'typing_extensions=typing:Protocol', 'typing_extensions=typing:SupportsIndex', 'typing_extensions=typing:TypedDict', @@ -576,6 +577,12 @@ def _report_diff(contents: str, new_contents: str, filename: str) -> None: REPLACES[(3, 9)].update(( 'typing_extensions=typing:Annotated', )) +REPLACES[(3, 10)].update(( + 'typing_extensions=typing:Concatenate', + 'typing_extensions=typing:ParamSpec', + 'typing_extensions=typing:TypeAlias', + 'typing_extensions=typing:TypeGuard', +)) # END GENERATED # GENERATED VIA generate-typing-pep585-rewrites