File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,7 @@ def extract_relationships(self) -> None:
226
226
obj .attrs = self .get_attrs (node )
227
227
obj .methods = self .get_methods (node )
228
228
obj .shape = "class"
229
+
229
230
# inheritance link
230
231
for par_node in node .ancestors (recurs = False ):
231
232
try :
@@ -234,12 +235,16 @@ def extract_relationships(self) -> None:
234
235
except KeyError :
235
236
continue
236
237
238
+ # Track processed attributes to avoid duplicates
239
+ processed_attrs = set ()
240
+
237
241
# Composition links
238
242
for name , values in list (node .compositions_type .items ()):
239
243
for value in values :
240
244
self .assign_association_relationship (
241
245
value , obj , name , "composition"
242
246
)
247
+ processed_attrs .add (name )
243
248
244
249
# Aggregation links
245
250
for name , values in list (node .aggregations_type .items ()):
You can’t perform that action at this time.
0 commit comments