Notify all attached observers by calling their update method.
(self)
| 57 | pass |
| 58 | |
| 59 | def notify(self) -> None: |
| 60 | """ |
| 61 | Notify all attached observers by calling their update method. |
| 62 | """ |
| 63 | for observer in self._observers: |
| 64 | observer.update(self) |
| 65 | |
| 66 | |
| 67 | class Data(Subject): |