Skip to content

Commit 41ae494

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 15850fd commit 41ae494

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pylint/checkers/typecheck.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ def _check_isinstance_args(self, node: nodes.Call, callable_name: str) -> None:
14491449
)
14501450

14511451
def _is_super(self, node: nodes.Call) -> bool:
1452-
"True if this node is a call to super()."
1452+
"""True if this node is a call to super()."""
14531453
if (
14541454
isinstance(node.func, nodes.Attribute)
14551455
and node.func.attrname == "__init__"
@@ -1493,7 +1493,9 @@ def visit_call(self, node: nodes.Call) -> None:
14931493
(call_site := astroid.arguments.CallSite.from_call(node))
14941494
and call_site.positional_arguments
14951495
and (first_arg := call_site.positional_arguments[0])
1496-
and not (isinstance(first_arg, nodes.Name) and first_arg.name == "self")
1496+
and not (
1497+
isinstance(first_arg, nodes.Name) and first_arg.name == "self"
1498+
)
14971499
):
14981500
self.add_message(
14991501
"too-many-function-args",

0 commit comments

Comments
 (0)