MCPcopy Create free account
hub / github.com/RefactoringGuru/design-patterns-python / __init__

Method __init__

src/Flyweight/Conceptual/main.py:33–34  ·  view source on GitHub ↗
(self, shared_state: str)

Source from the content-addressed store, hash-verified

31 """
32
33 def __init__(self, shared_state: str) -> None:
34 self._shared_state = shared_state
35
36 def operation(self, unique_state: str) -> None:
37 s = json.dumps(self._shared_state)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected