Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielNoord committed Dec 10, 2022
1 parent a52cb6c commit 30af13a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pylint/lint/parallel.py
Expand Up @@ -31,16 +31,15 @@
if TYPE_CHECKING:
from pylint.lint import PyLinter

# PyLinter object used by worker processes when checking files using multiprocessing
# PyLinter object used by worker processes when checking files using parallel mode
# should only be used by the worker processes
_worker_linter: PyLinter | None = None


def _worker_initialize(
linter: bytes, arguments: None | str | Sequence[str] = None
) -> None:
"""Function called to initialize a worker for a Process within a multiprocessing
Pool.
"""Function called to initialize a worker for a Process within a concurrent Pool.
:param linter: A linter-class (PyLinter) instance pickled with dill
:param arguments: File or module name(s) to lint and to be added to sys.path
Expand Down

0 comments on commit 30af13a

Please sign in to comment.