]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
docs: suggest using pyupgrade when dropping a Python version
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 27 Dec 2024 23:20:05 +0000 (00:20 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 27 Dec 2024 23:20:24 +0000 (00:20 +0100)
docs/release.rst

index c379934d0c48f7ee08635b16deeb2a1d770fb1b8..fcca3af6084b5a461e3fe53a5242601d3c38b2ad 100644 (file)
@@ -128,6 +128,12 @@ When dropping end-of-life Python versions
   An example for grepping `end-of-life <https://endoflife.date/python>` Python 3.8::
 
      git grep -E -e '\b3\.8\b' -e '\b(cp)?38\b' -e '\b3, 8\b'
+     git grep -E -e '\b3\.9\b' -e '\b(cp)?39\b' -e '\b3, 9\b'
+
+- Consider using pyupgrade_ with ``--py3NN-plus`` in order to refresh syntax
+  to Python 3.NN (the new minimum supported version).
+
+.. _pyupgrade: https://pypi.org/project/pyupgrade/
 
 Examples: