summaryrefslogtreecommitdiffstats
path: root/Lib/collections
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-06-14 18:39:50 (GMT)
committerGitHub <noreply@github.com>2024-06-14 18:39:50 (GMT)
commit05df063ad80becc1ba6bd07d67b55b5965f32375 (patch)
treef0c29d986aafdc49366a8627702e10dab54a887e /Lib/collections
parented60ab5fab6d187068cb3e0f0d4192ebf3a228b7 (diff)
downloadcpython-05df063ad80becc1ba6bd07d67b55b5965f32375.zip
cpython-05df063ad80becc1ba6bd07d67b55b5965f32375.tar.gz
cpython-05df063ad80becc1ba6bd07d67b55b5965f32375.tar.bz2
gh-120417: Fix "imported but unused" linter warnings (#120461)
Add __all__ to the following modules: importlib.machinery, importlib.util and xml.sax. Add also "# noqa: F401" in collections.abc, subprocess and xml.sax. * Sort __all__; remove collections.abc.__all__; remove private names * Add tests
Diffstat (limited to 'Lib/collections')
-rw-r--r--Lib/collections/abc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/collections/abc.py b/Lib/collections/abc.py
index 86ca8b8..bff7629 100644
--- a/Lib/collections/abc.py
+++ b/Lib/collections/abc.py
@@ -1,3 +1,3 @@
from _collections_abc import *
-from _collections_abc import __all__
-from _collections_abc import _CallableGenericAlias
+from _collections_abc import __all__ # noqa: F401
+from _collections_abc import _CallableGenericAlias # noqa: F401