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

Method __init__

src/Memento/Conceptual/main.py:41–43  ·  view source on GitHub ↗
(self, state: str)

Source from the content-addressed store, hash-verified

39 """
40
41 def __init__(self, state: str) -> None:
42 self._state = state
43 print(f"Originator: My initial state is: {self._state}")
44
45 def do_something(self) -> None:
46 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected