Skip to content

Commit e1d561b

Browse files
committed
comments
1 parent 4639148 commit e1d561b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hcloud/actions/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ class ActionsClient(ResourceActionsClient):
135135
def __init__(self, client: Client):
136136
super().__init__(client, None)
137137

138+
# TODO: Consider making public?
138139
def _get_list_by_ids(self, ids: list[int]) -> list[BoundAction]:
139140
"""
140141
Get a list of Actions by their IDs.
@@ -161,6 +162,7 @@ def _get_list_by_ids(self, ids: list[int]) -> list[BoundAction]:
161162
for action_data in response["actions"]
162163
)
163164

165+
# TODO: Should this be moved to the the wait function?
164166
if len(ids) != len(actions):
165167
found_ids = [a.id for a in actions]
166168
not_found_ids = list(set(ids) - set(found_ids))
@@ -200,7 +202,7 @@ def wait_for_function(
200202
while len(running_ids):
201203
# pylint: disable=protected-access
202204
if wait(self._client._poll_interval_func(retries)):
203-
# TODO: How to raise a timeout exception for many actiosn without exception group.
205+
# TODO: How to raise a timeout exception for many actions without using an exception group.
204206
raise ActionTimeoutException("")
205207

206208
retries += 1

0 commit comments

Comments
 (0)