Skip to content

Commit 3c5f5f9

Browse files
committed
Change parent class order of PyLinter
1 parent 2732e0c commit 3c5f5f9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pylint/lint/pylinter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ def _load_reporter_by_class(reporter_class: str) -> type:
190190

191191
# pylint: disable=too-many-instance-attributes,too-many-public-methods
192192
class PyLinter(
193+
_ArgumentsManager,
193194
config.OptionsManagerMixIn,
194195
reporters.ReportsHandlerMixIn,
195196
checkers.BaseTokenChecker,
196-
_ArgumentsManager,
197197
):
198198
"""Lint Python modules using external checkers.
199199

tests/test_regr.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ def test_pylint_config_attr() -> None:
122122
mod = astroid.MANAGER.ast_from_module_name("pylint.lint.pylinter")
123123
pylinter = mod["PyLinter"]
124124
expect = [
125-
"OptionsManagerMixIn",
125+
"_ArgumentsManager",
126126
"object",
127+
"OptionsManagerMixIn",
127128
"ReportsHandlerMixIn",
128129
"BaseTokenChecker",
129130
"BaseChecker",
130131
"OptionsProviderMixIn",
131-
"_ArgumentsManager",
132132
]
133133
assert [c.name for c in pylinter.ancestors()] == expect
134134
assert list(astroid.Instance(pylinter).getattr("config"))

0 commit comments

Comments
 (0)