Skip to content

Commit

Permalink
Update pylint/checkers/base/basic_error_checker.py
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre Sassoulas <[email protected]>
  • Loading branch information
mbyrnepr2 and Pierre-Sassoulas authored May 22, 2024
1 parent 9fd5946 commit a2700ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pylint/checkers/base/basic_error_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,7 @@ def visit_functiondef(self, node: nodes.FunctionDef) -> None:
self.add_message("return-in-init", node=node)
# Check for duplicate names by clustering args with same name for detailed report
arg_clusters = {}
arguments: Iterator[Any] = node.args.arguments
for arg in arguments:
for arg in node.args.arguments:
if arg.name in arg_clusters:
self.add_message(
"duplicate-argument-name",
Expand Down

0 comments on commit a2700ff

Please sign in to comment.