Skip to content

Commit 369e19d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ca4f2df commit 369e19d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pylint/pyreverse/diadefslib.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ def _get_levels(self) -> tuple[int, int]:
6969

7070
def _should_include_by_depth(self, node: nodes.NodeNG) -> bool:
7171
"""Check if a node should be included based on depth."""
72-
# If max_depth is not set, include all nodes, otherwise, calculate depth based on
72+
# If max_depth is not set, include all nodes, otherwise, calculate depth based on
7373
# node's root module
74-
return self.config.max_depth is None or bool(node.root().name.count(".") <= self.config.max_depth)
74+
return self.config.max_depth is None or bool(
75+
node.root().name.count(".") <= self.config.max_depth
76+
)
7577

7678
def show_node(self, node: nodes.ClassDef) -> bool:
7779
"""Determine if node should be shown based on config."""

0 commit comments

Comments
 (0)