From e6669bd0ef88083d2ce3946f7b1081416f0d150d Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Mon, 24 Oct 2022 19:51:36 -0400 Subject: [PATCH] regenerate import symbols --- pyupgrade/_plugins/imports.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/pyupgrade/_plugins/imports.py b/pyupgrade/_plugins/imports.py index fa2d3a7b..f6e03597 100644 --- a/pyupgrade/_plugins/imports.py +++ b/pyupgrade/_plugins/imports.py @@ -21,7 +21,7 @@ from pyupgrade._token_helpers import indented_amount # GENERATED VIA generate-imports -# Using reorder-python-imports==3.8.4 +# Using reorder-python-imports==3.9.0 REMOVALS = { (3,): { '__future__': { @@ -164,6 +164,25 @@ ('typing_extensions', 'get_origin'): 'typing', ('typing_extensions', 'is_typeddict'): 'typing', }, + (3, 11): { + ('typing_extensions', 'Any'): 'typing', + ('typing_extensions', 'LiteralString'): 'typing', + ('typing_extensions', 'NamedTuple'): 'typing', + ('typing_extensions', 'Never'): 'typing', + ('typing_extensions', 'NotRequired'): 'typing', + ('typing_extensions', 'Required'): 'typing', + ('typing_extensions', 'Self'): 'typing', + ('typing_extensions', 'TypedDict'): 'typing', + ('typing_extensions', 'Unpack'): 'typing', + ('typing_extensions', 'assert_never'): 'typing', + ('typing_extensions', 'assert_type'): 'typing', + ('typing_extensions', 'clear_overloads'): 'typing', + ('typing_extensions', 'dataclass_transform'): 'typing', + ('typing_extensions', 'final'): 'typing', + ('typing_extensions', 'get_overloads'): 'typing', + ('typing_extensions', 'overload'): 'typing', + ('typing_extensions', 'reveal_type'): 'typing', + }, } REPLACE_MODS = { 'six.moves.BaseHTTPServer': 'http.server',