| 
50 | 50 | from pylint.lint.utils import (  | 
51 | 51 |     _is_relative_to,  | 
52 | 52 |     augmented_sys_path,  | 
53 |  | -    realpath_transformer,  | 
54 | 53 |     get_fatal_error_message,  | 
55 | 54 |     prepare_crash_report,  | 
 | 55 | +    realpath_transformer,  | 
56 | 56 | )  | 
57 | 57 | from pylint.message import Message, MessageDefinition, MessageDefinitionStore  | 
58 | 58 | from pylint.reporters.base_reporter import BaseReporter  | 
 | 
75 | 75 | class GetAstProtocol(Protocol):  | 
76 | 76 |     def __call__(  | 
77 | 77 |         self, filepath: str, modname: str, data: str | None = None  | 
78 |  | -    ) -> nodes.Module:  | 
79 |  | -        ...  | 
 | 78 | +    ) -> nodes.Module: ...  | 
80 | 79 | 
 
  | 
81 | 80 | 
 
  | 
82 | 81 | def _read_stdin() -> str:  | 
@@ -310,9 +309,9 @@ def __init__(  | 
310 | 309 |         """Dictionary of possible but non-initialized reporters."""  | 
311 | 310 | 
 
  | 
312 | 311 |         # Attributes for checkers and plugins  | 
313 |  | -        self._checkers: defaultdict[  | 
314 |  | -            str, list[checkers.BaseChecker]  | 
315 |  | -        ] = collections.defaultdict(list)  | 
 | 312 | +        self._checkers: defaultdict[str, list[checkers.BaseChecker]] = (  | 
 | 313 | +            collections.defaultdict(list)  | 
 | 314 | +        )  | 
316 | 315 |         """Dictionary of registered and initialized checkers."""  | 
317 | 316 |         self._dynamic_plugins: dict[str, ModuleType | ModuleNotFoundError | bool] = {}  | 
318 | 317 |         """Set of loaded plugin names."""  | 
@@ -674,7 +673,9 @@ def check(self, files_or_modules: Sequence[str]) -> None:  | 
674 | 673 |             }  | 
675 | 674 |         )  | 
676 | 675 |         # Prefer package paths detected per module over user-defined PYTHONPATH additions  | 
677 |  | -        extra_sys_paths = extra_packages_paths + realpath_transformer(self.config.pythonpath)  | 
 | 676 | +        extra_sys_paths = extra_packages_paths + realpath_transformer(  | 
 | 677 | +            self.config.pythonpath  | 
 | 678 | +        )  | 
678 | 679 | 
 
  | 
679 | 680 |         # TODO: Move the parallel invocation into step 3 of the checking process  | 
680 | 681 |         if not self.config.from_stdin and self.config.jobs > 1:  | 
 | 
0 commit comments