Skip to content

Commit 9f23fcb

Browse files
committed
Fix formatting
1 parent 01e35d0 commit 9f23fcb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/tlo/notify.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def on_notification(data):
1717
notifier.add_listener("simulation.on_start", on_notification)
1818
"""
1919

20+
2021
class Notifier:
2122
"""
2223
A simple synchronous notification dispatcher supporting listeners.
@@ -59,6 +60,6 @@ def dispatch(self, notification_key, data=None):
5960
for listener in list(self.listeners[notification_key]):
6061
listener(data)
6162

63+
6264
# Create a global notifier instance
6365
notifier = Notifier()
64-

tests/test_notify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from tlo.notify import notifier
22

3+
34
def test_notifier():
45
# in listening code
56
received_data = []
@@ -20,4 +21,3 @@ def callback(data):
2021
notifier.dispatch("test.signal", data={"value": 100})
2122

2223
assert len(received_data) == 1 # No new data
23-

0 commit comments

Comments
 (0)