mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
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.
This commit is contained in:
parent
ca5108a46d
commit
6ae254aaa0
25 changed files with 40 additions and 36 deletions
|
@ -167,7 +167,7 @@ class BaseContext(object):
|
|||
'''
|
||||
# This is undocumented. In previous versions of multiprocessing
|
||||
# its only effect was to make socket objects inheritable on Windows.
|
||||
from . import connection
|
||||
from . import connection # noqa: F401
|
||||
|
||||
def set_executable(self, executable):
|
||||
'''Sets the path to a python.exe or pythonw.exe binary used to run
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue