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 Aug 5, 2023
1 parent dc66fc3 commit c82376d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pylint/checkers/design_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,7 @@ def visit_classdef(self, node: nodes.ClassDef) -> None:
# https://github.com/pylint-dev/astroid/issues/2273
root = node.root()
filtered_attrs = [
k
for (k, v) in node.instance_attrs.items()
if v[0].root() is root
k for (k, v) in node.instance_attrs.items() if v[0].root() is root
]
if len(filtered_attrs) > self.linter.config.max_attributes:
self.add_message(
Expand Down

0 comments on commit c82376d

Please sign in to comment.