Skip to content

Commit d291249

Browse files
committed
fix linting, formating errors in robot-server
1 parent f2703e2 commit d291249

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

robot-server/robot_server/subsystems/firmware_update_manager.py

+4
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ def __init__(
148148
self._status_cache_lock = Lock()
149149
self._created_at = created_at
150150
self._update_id = update_id
151+
# mypy thinks this is assignment to a method, which it is not. that means
152+
# it's ok to assign this and it's also okay to not take a self argument
151153
self._complete_callback = complete_callback
152154

153155
@property
@@ -204,6 +206,8 @@ async def _update_task(self) -> None:
204206
UpdateProgress(UpdateState.failed, last_progress, be)
205207
)
206208
finally:
209+
# mypy continues to think this is a method but it is a function stored in an
210+
# attribute and therefore does not need a self argument
207211
await self._complete_callback()
208212

209213
def get_handle(self) -> "UpdateProcessHandle":

0 commit comments

Comments
 (0)