Skip to content

Commit e62636f

Browse files
committed
Also consider composition when when filtering for --no-standalone ==> fixes last failing test
1 parent f3f4364 commit e62636f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pylint/pyreverse/writer.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,12 @@ def write_classes(self, diagram: ClassDiagram) -> None:
119119

120120
if self.config.no_standalone and not any(
121121
obj in (rel.from_object, rel.to_object)
122-
for rel_type in ("specialization", "association", "aggregation")
122+
for rel_type in (
123+
"specialization",
124+
"association",
125+
"aggregation",
126+
"composition",
127+
)
123128
for rel in diagram.get_relationships(rel_type)
124129
):
125130
continue

0 commit comments

Comments
 (0)