Skip to content

Commit cccaf3a

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

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Fix a bug in Pyreverse where aggregations and associations were included in diagrams regardless of the selected --filter-mode (such as PUB_ONLY, ALL, etc.).
22

3-
Closes #10373
3+
Closes #10373

pylint/pyreverse/diagrams.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def extract_relationships(self) -> None:
239239
for value in values:
240240
if not self.show_attr(name):
241241
continue
242-
242+
243243
self.assign_association_relationship(
244244
value, obj, name, "aggregation"
245245
)
@@ -254,7 +254,7 @@ def extract_relationships(self) -> None:
254254
for value in values:
255255
if not self.show_attr(name):
256256
continue
257-
257+
258258
self.assign_association_relationship(
259259
value, obj, name, "association"
260260
)

tests/pyreverse/functional/class_diagrams/aggregation/test_aggregation_filtering.mmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ classDiagram
66
}
77
class P {
88
}
9-
P --* A : x
9+
P --* A : x

0 commit comments

Comments
 (0)