Run of fresh-releases for pyupgrade

Merge these changes:

git pull https://janitor.debian.net/git/pyupgrade fresh-releases/main
git pull https://janitor.debian.net/git/pyupgrade fresh-releases/pristine-tar
git pull https://janitor.debian.net/git/pyupgrade fresh-releases/upstream

Summary

Merged new upstream version: 2.37.3 (was: 2.37.1).

Diff

Branch: main

diff --git a/PKG-INFO b/PKG-INFO
index d2ecb07..cdbef69 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pyupgrade
-Version: 2.37.1
+Version: 2.37.3
 Summary: A tool to automatically upgrade syntax for newer versions.
 Home-page: https://github.com/asottile/pyupgrade
 Author: Anthony Sottile
@@ -42,7 +42,7 @@ Sample `.pre-commit-config.yaml`:
 
 ```yaml
 -   repo: https://github.com/asottile/pyupgrade
-    rev: v2.37.1
+    rev: v2.37.3
     hooks:
     -   id: pyupgrade
 ```
diff --git a/README.md b/README.md
index 4e66838..15ab11f 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@ Sample `.pre-commit-config.yaml`:
 
 ```yaml
 -   repo: https://github.com/asottile/pyupgrade
-    rev: v2.37.1
+    rev: v2.37.3
     hooks:
     -   id: pyupgrade
 ```
diff --git a/debian/changelog b/debian/changelog
index 092c85d..f2c0988 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,10 @@
-pyupgrade (2.37.1-2) UNRELEASED; urgency=medium
+pyupgrade (2.37.3-1) UNRELEASED; urgency=medium
 
   * Remove obsolete field Name from debian/upstream/metadata (already present in
     machine-readable debian/copyright).
+  * New upstream release.
 
- -- Debian Janitor <janitor@jelmer.uk>  Thu, 01 Sep 2022 23:15:38 -0000
+ -- Debian Janitor <janitor@jelmer.uk>  Sat, 10 Sep 2022 04:49:51 -0000
 
 pyupgrade (2.37.1-1) unstable; urgency=medium
 
diff --git a/pyupgrade.egg-info/PKG-INFO b/pyupgrade.egg-info/PKG-INFO
index d2ecb07..cdbef69 100644
--- a/pyupgrade.egg-info/PKG-INFO
+++ b/pyupgrade.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pyupgrade
-Version: 2.37.1
+Version: 2.37.3
 Summary: A tool to automatically upgrade syntax for newer versions.
 Home-page: https://github.com/asottile/pyupgrade
 Author: Anthony Sottile
@@ -42,7 +42,7 @@ Sample `.pre-commit-config.yaml`:
 
 ```yaml
 -   repo: https://github.com/asottile/pyupgrade
-    rev: v2.37.1
+    rev: v2.37.3
     hooks:
     -   id: pyupgrade
 ```
diff --git a/pyupgrade/_plugins/imports.py b/pyupgrade/_plugins/imports.py
index 7dcb928..9428595 100644
--- a/pyupgrade/_plugins/imports.py
+++ b/pyupgrade/_plugins/imports.py
@@ -21,7 +21,7 @@ from pyupgrade._token_helpers import has_space_before
 from pyupgrade._token_helpers import indented_amount
 
 # GENERATED VIA generate-imports
-# Using reorder-python-imports==3.8.1
+# Using reorder-python-imports==3.8.2
 REMOVALS = {
     (2, 7): {'__future__': {'generators', 'nested_scopes', 'with_statement'}},
     (3,): {
@@ -102,7 +102,6 @@ REPLACE_EXACT = {
         ('typing_extensions', 'Text'): 'typing',
         ('typing_extensions', 'Type'): 'typing',
         ('typing_extensions', 'get_type_hints'): 'typing',
-        ('typing_extensions', 'overload'): 'typing',
     },
     (3, 7): {
         ('mypy_extensions', 'NoReturn'): 'typing',
@@ -111,6 +110,7 @@ REPLACE_EXACT = {
         ('typing_extensions', 'ChainMap'): 'typing',
         ('typing_extensions', 'Counter'): 'typing',
         ('typing_extensions', 'Deque'): 'typing',
+        ('typing_extensions', 'NoReturn'): 'typing',
     },
     (3, 8): {
         ('mypy_extensions', 'TypedDict'): 'typing',
@@ -119,10 +119,6 @@ REPLACE_EXACT = {
         ('typing_extensions', 'OrderedDict'): 'typing',
         ('typing_extensions', 'Protocol'): 'typing',
         ('typing_extensions', 'SupportsIndex'): 'typing',
-        ('typing_extensions', 'TypedDict'): 'typing',
-        ('typing_extensions', 'final'): 'typing',
-        ('typing_extensions', 'get_args'): 'typing',
-        ('typing_extensions', 'get_origin'): 'typing',
         ('typing_extensions', 'runtime_checkable'): 'typing',
     },
     (3, 9): {
@@ -162,8 +158,13 @@ REPLACE_EXACT = {
         ('typing', 'Callable'): 'collections.abc',
         ('typing_extensions', 'Concatenate'): 'typing',
         ('typing_extensions', 'ParamSpec'): 'typing',
+        ('typing_extensions', 'ParamSpecArgs'): 'typing',
+        ('typing_extensions', 'ParamSpecKwargs'): 'typing',
         ('typing_extensions', 'TypeAlias'): 'typing',
         ('typing_extensions', 'TypeGuard'): 'typing',
+        ('typing_extensions', 'get_args'): 'typing',
+        ('typing_extensions', 'get_origin'): 'typing',
+        ('typing_extensions', 'is_typeddict'): 'typing',
     },
 }
 REPLACE_MODS = {
@@ -232,10 +233,11 @@ def _for_version(
         Mapping[tuple[str, str], str],
         Mapping[str, str],
 ]:
-    removals = {}
+    removals = collections.defaultdict(set)
     for ver, ver_removals in REMOVALS.items():
         if ver <= version:
-            removals.update(ver_removals)
+            for base, names in ver_removals.items():
+                removals[base].update(names)
 
     exact = {}
     for ver, ver_exact in REPLACE_EXACT.items():
diff --git a/setup.cfg b/setup.cfg
index fa3e8e5..2e69a66 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,6 +1,6 @@
 [metadata]
 name = pyupgrade
-version = 2.37.1
+version = 2.37.3
 description = A tool to automatically upgrade syntax for newer versions.
 long_description = file: README.md
 long_description_content_type = text/markdown

Branch: pristine-tar

diff --git a/pyupgrade_2.37.3.orig.tar.gz.delta b/pyupgrade_2.37.3.orig.tar.gz.delta
new file mode 100644
index 0000000..d96008b
Binary files /dev/null and b/pyupgrade_2.37.3.orig.tar.gz.delta differ
diff --git a/pyupgrade_2.37.3.orig.tar.gz.id b/pyupgrade_2.37.3.orig.tar.gz.id
new file mode 100644
index 0000000..36d2d29
--- /dev/null
+++ b/pyupgrade_2.37.3.orig.tar.gz.id
@@ -0,0 +1 @@
+8392f60d8d3cd4f9b14ff64cfe572ff446cfbb7a

Branch: upstream

Tag: upstream/2.37.3
diff --git a/PKG-INFO b/PKG-INFO
index d2ecb07..cdbef69 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pyupgrade
-Version: 2.37.1
+Version: 2.37.3
 Summary: A tool to automatically upgrade syntax for newer versions.
 Home-page: https://github.com/asottile/pyupgrade
 Author: Anthony Sottile
@@ -42,7 +42,7 @@ Sample `.pre-commit-config.yaml`:
 
 ```yaml
 -   repo: https://github.com/asottile/pyupgrade
-    rev: v2.37.1
+    rev: v2.37.3
     hooks:
     -   id: pyupgrade
 ```
diff --git a/README.md b/README.md
index 4e66838..15ab11f 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@ Sample `.pre-commit-config.yaml`:
 
 ```yaml
 -   repo: https://github.com/asottile/pyupgrade
-    rev: v2.37.1
+    rev: v2.37.3
     hooks:
     -   id: pyupgrade
 ```
diff --git a/pyupgrade.egg-info/PKG-INFO b/pyupgrade.egg-info/PKG-INFO
index d2ecb07..cdbef69 100644
--- a/pyupgrade.egg-info/PKG-INFO
+++ b/pyupgrade.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pyupgrade
-Version: 2.37.1
+Version: 2.37.3
 Summary: A tool to automatically upgrade syntax for newer versions.
 Home-page: https://github.com/asottile/pyupgrade
 Author: Anthony Sottile
@@ -42,7 +42,7 @@ Sample `.pre-commit-config.yaml`:
 
 ```yaml
 -   repo: https://github.com/asottile/pyupgrade
-    rev: v2.37.1
+    rev: v2.37.3
     hooks:
     -   id: pyupgrade
 ```
diff --git a/pyupgrade/_plugins/imports.py b/pyupgrade/_plugins/imports.py
index 7dcb928..9428595 100644
--- a/pyupgrade/_plugins/imports.py
+++ b/pyupgrade/_plugins/imports.py
@@ -21,7 +21,7 @@ from pyupgrade._token_helpers import has_space_before
 from pyupgrade._token_helpers import indented_amount
 
 # GENERATED VIA generate-imports
-# Using reorder-python-imports==3.8.1
+# Using reorder-python-imports==3.8.2
 REMOVALS = {
     (2, 7): {'__future__': {'generators', 'nested_scopes', 'with_statement'}},
     (3,): {
@@ -102,7 +102,6 @@ REPLACE_EXACT = {
         ('typing_extensions', 'Text'): 'typing',
         ('typing_extensions', 'Type'): 'typing',
         ('typing_extensions', 'get_type_hints'): 'typing',
-        ('typing_extensions', 'overload'): 'typing',
     },
     (3, 7): {
         ('mypy_extensions', 'NoReturn'): 'typing',
@@ -111,6 +110,7 @@ REPLACE_EXACT = {
         ('typing_extensions', 'ChainMap'): 'typing',
         ('typing_extensions', 'Counter'): 'typing',
         ('typing_extensions', 'Deque'): 'typing',
+        ('typing_extensions', 'NoReturn'): 'typing',
     },
     (3, 8): {
         ('mypy_extensions', 'TypedDict'): 'typing',
@@ -119,10 +119,6 @@ REPLACE_EXACT = {
         ('typing_extensions', 'OrderedDict'): 'typing',
         ('typing_extensions', 'Protocol'): 'typing',
         ('typing_extensions', 'SupportsIndex'): 'typing',
-        ('typing_extensions', 'TypedDict'): 'typing',
-        ('typing_extensions', 'final'): 'typing',
-        ('typing_extensions', 'get_args'): 'typing',
-        ('typing_extensions', 'get_origin'): 'typing',
         ('typing_extensions', 'runtime_checkable'): 'typing',
     },
     (3, 9): {
@@ -162,8 +158,13 @@ REPLACE_EXACT = {
         ('typing', 'Callable'): 'collections.abc',
         ('typing_extensions', 'Concatenate'): 'typing',
         ('typing_extensions', 'ParamSpec'): 'typing',
+        ('typing_extensions', 'ParamSpecArgs'): 'typing',
+        ('typing_extensions', 'ParamSpecKwargs'): 'typing',
         ('typing_extensions', 'TypeAlias'): 'typing',
         ('typing_extensions', 'TypeGuard'): 'typing',
+        ('typing_extensions', 'get_args'): 'typing',
+        ('typing_extensions', 'get_origin'): 'typing',
+        ('typing_extensions', 'is_typeddict'): 'typing',
     },
 }
 REPLACE_MODS = {
@@ -232,10 +233,11 @@ def _for_version(
         Mapping[tuple[str, str], str],
         Mapping[str, str],
 ]:
-    removals = {}
+    removals = collections.defaultdict(set)
     for ver, ver_removals in REMOVALS.items():
         if ver <= version:
-            removals.update(ver_removals)
+            for base, names in ver_removals.items():
+                removals[base].update(names)
 
     exact = {}
     for ver, ver_exact in REPLACE_EXACT.items():
diff --git a/setup.cfg b/setup.cfg
index fa3e8e5..2e69a66 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,6 +1,6 @@
 [metadata]
 name = pyupgrade
-version = 2.37.1
+version = 2.37.3
 description = A tool to automatically upgrade syntax for newer versions.
 long_description = file: README.md
 long_description_content_type = text/markdown

Publish Blockers

  • ☑ run was successful
  • ☑ package has not been removed from the archive
  • ☑ command has not changed
  • ☒ not yet reviewed, but review needed
  • ☑ 0 publish attempts so far.not currently attempting to back off
  • ☑ proposals not currently being rate-limited for maintainer team+python@tracker.debian.org
  • ☑ change set f16871c6-9cca-444d-8bb5-d6dd275aa7cc is ready

Resulting package

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-releases pyupgrade

Lintian Result

Full worker log Full build log