mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
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
This commit is contained in:
parent
ed60ab5fab
commit
05df063ad8
7 changed files with 84 additions and 8 deletions
|
@ -19,3 +19,11 @@ from ._bootstrap_external import NamespaceLoader
|
|||
def all_suffixes():
|
||||
"""Returns a list of all recognized module suffixes for this process"""
|
||||
return SOURCE_SUFFIXES + BYTECODE_SUFFIXES + EXTENSION_SUFFIXES
|
||||
|
||||
|
||||
__all__ = ['AppleFrameworkLoader', 'BYTECODE_SUFFIXES', 'BuiltinImporter',
|
||||
'DEBUG_BYTECODE_SUFFIXES', 'EXTENSION_SUFFIXES',
|
||||
'ExtensionFileLoader', 'FileFinder', 'FrozenImporter', 'ModuleSpec',
|
||||
'NamespaceLoader', 'OPTIMIZED_BYTECODE_SUFFIXES', 'PathFinder',
|
||||
'SOURCE_SUFFIXES', 'SourceFileLoader', 'SourcelessFileLoader',
|
||||
'WindowsRegistryFinder', 'all_suffixes']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue