diff options
author | Victor Stinner <vstinner@python.org> | 2024-06-13 16:14:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-13 16:14:50 +0200 |
commit | 6ae254aaa0a5a3985a52d1ab387a2b68c001bd96 (patch) | |
tree | 09a2b03e9721203f5b6b523fbb26db13f36e8569 /Lib/struct.py | |
parent | ca5108a46d5da3978d4bd29717ea3fbdee772e66 (diff) | |
download | cpython-6ae254aaa0a5a3985a52d1ab387a2b68c001bd96.tar.gz cpython-6ae254aaa0a5a3985a52d1ab387a2b68c001bd96.zip |
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.
Diffstat (limited to 'Lib/struct.py')
-rw-r--r-- | Lib/struct.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/struct.py b/Lib/struct.py index d6bba588636..ff98e8c4cb3 100644 --- a/Lib/struct.py +++ b/Lib/struct.py @@ -11,5 +11,5 @@ __all__ = [ ] from _struct import * -from _struct import _clearcache -from _struct import __doc__ +from _struct import _clearcache # noqa: F401 +from _struct import __doc__ # noqa: F401 |