/opt/cloudlinux/venv/lib/python3.11/site-packages/pylint/checkers
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/main/LICENSE # Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt from __future__ import annotations import abc import warnings from typing import TYPE_CHECKING, Any if TYPE_CHECKING: from pylint.lint import PyLinter class MapReduceMixin(metaclass=abc.ABCMeta): """A mixin design to allow multi-process/threaded runs of a Checker.""" def __init__(self) -> None: warnings.warn( "MapReduceMixin has been deprecated and will be removed in pylint 3.0. " "To make a checker reduce map data simply implement get_map_data and reduce_map_data.", DeprecationWarning, stacklevel=2, ) @abc.abstractmethod def get_map_data(self) -> Any: """Returns merge-able/reducible data that will be examined.""" @abc.abstractmethod def reduce_map_data(self, linter: PyLinter, data: list[Any]) -> None: """For a given Checker, receives data for all mapped runs."""
.
Edit
..
Edit
__init__.py
Edit
__pycache__
Edit
async.py
Edit
bad_chained_comparison.py
Edit
base
Edit
base_checker.py
Edit
classes
Edit
deprecated.py
Edit
design_analysis.py
Edit
dunder_methods.py
Edit
ellipsis_checker.py
Edit
exceptions.py
Edit
format.py
Edit
imports.py
Edit
lambda_expressions.py
Edit
logging.py
Edit
mapreduce_checker.py
Edit
method_args.py
Edit
misc.py
Edit
modified_iterating_checker.py
Edit
nested_min_max.py
Edit
newstyle.py
Edit
non_ascii_names.py
Edit
raw_metrics.py
Edit
refactoring
Edit
similar.py
Edit
spelling.py
Edit
stdlib.py
Edit
strings.py
Edit
threading_checker.py
Edit
typecheck.py
Edit
unicode.py
Edit
unsupported_version.py
Edit
utils.py
Edit
variables.py
Edit