From 035e3fb994f582829f43cae845553851dd7ec44e Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Sat, 28 Sep 2024 12:07:34 +0200 Subject: [PATCH] Update typing rewrites for typing_extensions 4.12.2 --- reorder_python_imports.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/reorder_python_imports.py b/reorder_python_imports.py index df8b52f..c8d6a0c 100644 --- a/reorder_python_imports.py +++ b/reorder_python_imports.py @@ -421,7 +421,7 @@ def _fix_file( # Using: # flake8-typing-imports==1.15.0 # mypy-extensions==1.0.0 -# typing-extensions==4.12.1 +# typing-extensions==4.12.2 REPLACES[(3, 6)].update(( 'typing_extensions=typing:AbstractSet', 'typing_extensions=typing:AnyStr', @@ -526,6 +526,18 @@ def _fix_file( 'typing_extensions=typing:dataclass_transform', 'typing_extensions=typing:override', )) +REPLACES[(3, 13)].update(( + 'typing_extensions=typing:AsyncContextManager', + 'typing_extensions=typing:AsyncGenerator', + 'typing_extensions=typing:ContextManager', + 'typing_extensions=typing:Generator', + 'typing_extensions=typing:ParamSpec', + 'typing_extensions=typing:Protocol', + 'typing_extensions=typing:TypeVar', + 'typing_extensions=typing:TypeVarTuple', + 'typing_extensions=typing:TypedDict', + 'typing_extensions=typing:runtime_checkable', +)) # END GENERATED # GENERATED VIA generate-typing-pep585-rewrites