Skip to content

Commit

Permalink
regenerate symbols for --py313-plus
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Oct 11, 2024
1 parent 99f0d7a commit 226decb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pyupgrade/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,10 @@ def main(argv: Sequence[str] | None = None) -> int:
'--py312-plus',
action='store_const', dest='min_version', const=(3, 12),
)
parser.add_argument(
'--py313-plus',
action='store_const', dest='min_version', const=(3, 13),
)
args = parser.parse_args(argv)

ret = 0
Expand Down
19 changes: 18 additions & 1 deletion pyupgrade/_plugins/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from pyupgrade._token_helpers import indented_amount

# GENERATED VIA generate-imports
# Using reorder-python-imports==3.13.0
# Using reorder-python-imports==3.14.0
REMOVALS = {
(3,): {
'__future__': {
Expand Down Expand Up @@ -223,6 +223,23 @@
('typing_extensions', 'dataclass_transform'): 'typing',
('typing_extensions', 'override'): 'typing',
},
(3, 13): {
('typing_extensions', 'AsyncContextManager'): 'typing',
('typing_extensions', 'AsyncGenerator'): 'typing',
('typing_extensions', 'ContextManager'): 'typing',
('typing_extensions', 'Generator'): 'typing',
('typing_extensions', 'NoDefault'): 'typing',
('typing_extensions', 'ParamSpec'): 'typing',
('typing_extensions', 'Protocol'): 'typing',
('typing_extensions', 'ReadOnly'): 'typing',
('typing_extensions', 'TypeIs'): 'typing',
('typing_extensions', 'TypeVar'): 'typing',
('typing_extensions', 'TypeVarTuple'): 'typing',
('typing_extensions', 'TypedDict'): 'typing',
('typing_extensions', 'get_protocol_members'): 'typing',
('typing_extensions', 'is_protocol'): 'typing',
('typing_extensions', 'runtime_checkable'): 'typing',
},
}
REPLACE_MODS = {
'six.moves.BaseHTTPServer': 'http.server',
Expand Down

0 comments on commit 226decb

Please sign in to comment.