Skip to content

Commit

Permalink
Change parent class order of PyLinter
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielNoord committed Apr 5, 2022
1 parent 2732e0c commit 3c5f5f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pylint/lint/pylinter.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ def _load_reporter_by_class(reporter_class: str) -> type:

# pylint: disable=too-many-instance-attributes,too-many-public-methods
class PyLinter(
_ArgumentsManager,
config.OptionsManagerMixIn,
reporters.ReportsHandlerMixIn,
checkers.BaseTokenChecker,
_ArgumentsManager,
):
"""Lint Python modules using external checkers.
Expand Down
4 changes: 2 additions & 2 deletions tests/test_regr.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ def test_pylint_config_attr() -> None:
mod = astroid.MANAGER.ast_from_module_name("pylint.lint.pylinter")
pylinter = mod["PyLinter"]
expect = [
"OptionsManagerMixIn",
"_ArgumentsManager",
"object",
"OptionsManagerMixIn",
"ReportsHandlerMixIn",
"BaseTokenChecker",
"BaseChecker",
"OptionsProviderMixIn",
"_ArgumentsManager",
]
assert [c.name for c in pylinter.ancestors()] == expect
assert list(astroid.Instance(pylinter).getattr("config"))
Expand Down

0 comments on commit 3c5f5f9

Please sign in to comment.