Skip to content

Commit

Permalink
fix linting, formating errors in robot-server
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthecoder committed Dec 20, 2023
1 parent f2703e2 commit d291249
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ def __init__(
self._status_cache_lock = Lock()
self._created_at = created_at
self._update_id = update_id
# mypy thinks this is assignment to a method, which it is not. that means
# it's ok to assign this and it's also okay to not take a self argument
self._complete_callback = complete_callback

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

def get_handle(self) -> "UpdateProcessHandle":
Expand Down

0 comments on commit d291249

Please sign in to comment.