Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RefactoringGuru/design-patterns-python
/ ConcreteObserverB
Class
ConcreteObserverB
src/Observer/Conceptual/main.py:171–174 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
169
170
171
class
ConcreteObserverB(Observer):
172
def
update(self, subject: Subject) -> None:
173
if
subject._state == 0 or subject._state >= 2:
174
print(
"ConcreteObserverB: Reacted to the event"
)
175
176
177
if
__name__ ==
"__main__"
:
Callers
1
main.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected