Skip to content

Commit 4329896

Browse files
committedDec 16, 2024
ENH: Improve comments
skipci
1 parent a9d7888 commit 4329896

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎octue/utils/objects.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ def get_nested_attribute(instance, name):
1111
:param str name: a dot-separated nested attribute name e.g. "a.b.c", "a.b", or "a"
1212
:return any:
1313
"""
14-
# This is a random number used instead of `None` to signal that an attribute is missing and does not just have a
15-
# `None` value.
14+
# This is a random number used as a default instead of `None` to signal that an attribute is missing rather than
15+
# existing and just having `None` as its value.
1616
missing_indicator = "7027907024295393"
1717
attribute = pydash.get(instance, name, default=missing_indicator)
1818

‎tests/cloud/pub_sub/test_service.py

+1
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,7 @@ def run_function(*args, **kwargs):
778778
parent = MockService(backend=BACKEND, children={child.id: child})
779779
child.serve()
780780

781+
# Trigger the heartbeat check straight away.
781782
with patch(
782783
"octue.cloud.emulators._pub_sub.MockService.answer",
783784
functools.partial(child.answer, heartbeat_interval=0.1),

0 commit comments

Comments
 (0)
Please sign in to comment.