Skip to content

Commit 2b7d4ff

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0848bd9 commit 2b7d4ff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pylint/checkers/design_analysis.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,10 @@ def leave_classdef(self, node: nodes.ClassDef) -> None:
488488
# Stop here if the class is excluded via configuration.
489489
if node.type == "class" and self._exclude_too_few_public_methods:
490490
for ancestor in node.ancestors():
491-
if any(pattern.match(ancestor.qname()) in self._exclude_too_few_public_methods):
491+
if any(
492+
pattern.match(ancestor.qname())
493+
in self._exclude_too_few_public_methods
494+
):
492495
return
493496

494497
# Stop here for exception, metaclass, interface classes and other

0 commit comments

Comments
 (0)