]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-120417: Add #noqa to used imports in the stdlib (#120421)
authorVictor Stinner <vstinner@python.org>
Thu, 13 Jun 2024 14:14:50 +0000 (16:14 +0200)
committerGitHub <noreply@github.com>
Thu, 13 Jun 2024 14:14:50 +0000 (16:14 +0200)
commit6ae254aaa0a5a3985a52d1ab387a2b68c001bd96
tree09a2b03e9721203f5b6b523fbb26db13f36e8569
parentca5108a46d5da3978d4bd29717ea3fbdee772e66
gh-120417: Add #noqa to used imports in the stdlib (#120421)

Tools such as ruff can ignore "imported but unused" warnings if a
line ends with "# noqa: F401". It avoids the temptation to remove
an import which is used effectively.
25 files changed:
Lib/_pyio.py
Lib/code.py
Lib/codecs.py
Lib/collections/__init__.py
Lib/concurrent/futures/process.py
Lib/curses/__init__.py
Lib/datetime.py
Lib/decimal.py
Lib/hashlib.py
Lib/lzma.py
Lib/multiprocessing/context.py
Lib/multiprocessing/util.py
Lib/opcode.py
Lib/operator.py
Lib/platform.py
Lib/pstats.py
Lib/pydoc.py
Lib/re/_constants.py
Lib/site.py
Lib/sqlite3/__main__.py
Lib/struct.py
Lib/symtable.py
Lib/unittest/__init__.py
Lib/urllib/request.py
Lib/xml/dom/__init__.py