Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 13, 2024
1 parent 2fd6711 commit 65f42ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
3 changes: 1 addition & 2 deletions pylint/checkers/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ def _is_raising(body: list[nodes.NodeNG]) -> bool:
"E0710": (
"Raising a class which doesn't inherit from BaseException",
"raising-non-exception",
"Used when a class which doesn't inherit from "
"BaseException is raised.",
"Used when a class which doesn't inherit from " "BaseException is raised.",
),
"E0711": (
"NotImplemented raised - should raise NotImplementedError",
Expand Down
10 changes: 2 additions & 8 deletions pylint/checkers/newstyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@
from astroid import nodes

from pylint.checkers import BaseChecker
from pylint.checkers.utils import (
has_known_bases,
node_frame_class,
only_required_for_messages,
)
from pylint.checkers.utils import node_frame_class, only_required_for_messages
from pylint.typing import MessageDefinitionTuple

if TYPE_CHECKING:
Expand Down Expand Up @@ -96,9 +92,7 @@ def visit_functiondef(self, node: nodes.FunctionDef) -> None:
and isinstance(arg0, nodes.Attribute)
and arg0.attrname == "__class__"
):
self.add_message(
"bad-super-call", node=call, args=("self.__class__",)
)
self.add_message("bad-super-call", node=call, args=("self.__class__",))
continue

try:
Expand Down

0 comments on commit 65f42ef

Please sign in to comment.