Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RefactoringGuru/design-patterns-python
/ main.py
File
main.py
src/Composite/Conceptual/main.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
""
"
2
EN: Composite Design Pattern
3
4
Intent: Lets you compose objects into tree structures and then work
with
these
Callers
nothing calls this directly
Calls
5
Leaf
Class · 0.85
Composite
Class · 0.85
client_code2
Function · 0.85
client_code
Function · 0.70
add
Method · 0.45
Tested by
no test coverage detected