File tree 1 file changed +4
-0
lines changed
robot-server/robot_server/subsystems
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,8 @@ def __init__(
148
148
self ._status_cache_lock = Lock ()
149
149
self ._created_at = created_at
150
150
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
151
153
self ._complete_callback = complete_callback
152
154
153
155
@property
@@ -204,6 +206,8 @@ async def _update_task(self) -> None:
204
206
UpdateProgress (UpdateState .failed , last_progress , be )
205
207
)
206
208
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
207
211
await self ._complete_callback ()
208
212
209
213
def get_handle (self ) -> "UpdateProcessHandle" :
You can’t perform that action at this time.
0 commit comments