diff options
author | Victor Stinner <vstinner@python.org> | 2024-06-13 14:14:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-13 14:14:50 (GMT) |
commit | 6ae254aaa0a5a3985a52d1ab387a2b68c001bd96 (patch) | |
tree | 09a2b03e9721203f5b6b523fbb26db13f36e8569 /Lib/symtable.py | |
parent | ca5108a46d5da3978d4bd29717ea3fbdee772e66 (diff) | |
download | cpython-6ae254aaa0a5a3985a52d1ab387a2b68c001bd96.zip cpython-6ae254aaa0a5a3985a52d1ab387a2b68c001bd96.tar.gz cpython-6ae254aaa0a5a3985a52d1ab387a2b68c001bd96.tar.bz2 |
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/symtable.py')
-rw-r--r-- | Lib/symtable.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/symtable.py b/Lib/symtable.py index d6ac1f5..f8ba349 100644 --- a/Lib/symtable.py +++ b/Lib/symtable.py @@ -3,9 +3,9 @@ import _symtable from _symtable import ( USE, - DEF_GLOBAL, DEF_NONLOCAL, DEF_LOCAL, - DEF_PARAM, DEF_TYPE_PARAM, - DEF_FREE_CLASS, + DEF_GLOBAL, # noqa: F401 + DEF_NONLOCAL, DEF_LOCAL, + DEF_PARAM, DEF_TYPE_PARAM, DEF_FREE_CLASS, DEF_IMPORT, DEF_BOUND, DEF_ANNOT, DEF_COMP_ITER, DEF_COMP_CELL, SCOPE_OFF, SCOPE_MASK, |