Composition not detected correctly in list comprehension #10236
Labels
Needs triage 📥
Just created, needs acknowledgment, triage, and proper labelling
pyreverse
Related to pyreverse component
Bug description
I have a class that instantiates multiple objects of another class in a list comprehension:
The above results in no relationship in the UML diagram:

Configuration
Command used
Pylint output
Expected behavior
When I turn
self.circles: list[Circle]
intoself.circles = Circle(dataset, stdev)
:Pylint version
OS / Environment
MacOS 14.6.1 (23G93), iterm2 and VS Code terminal using zsh
Additional dependencies
The text was updated successfully, but these errors were encountered: