Skip to content
Snippets Groups Projects
Commit d004d961 authored by Sybren A. Stüvel's avatar Sybren A. Stüvel
Browse files

Fixed last MyPy error

parent 421ec4b6
Branches
Tags
No related merge requests found
...@@ -528,9 +528,9 @@ class FlamencoWorker: ...@@ -528,9 +528,9 @@ class FlamencoWorker:
self._log.info('Updating task %s with status %r and activity %r', self._log.info('Updating task %s with status %r and activity %r',
self.task_id, self.current_task_status, self.last_task_activity) self.task_id, self.current_task_status, self.last_task_activity)
payload: typing.MutableMapping[str, typing.Any] = {}
if self.task_is_silently_aborting: if self.task_is_silently_aborting:
self._log.info('push_to_manager: task is silently aborting, will only push logs') self._log.info('push_to_manager: task is silently aborting, will only push logs')
payload = {} # type: typing.Mapping[str, typing.Any]
else: else:
payload = attr.asdict(self.last_task_activity) payload = attr.asdict(self.last_task_activity)
if self.current_task_status: if self.current_task_status:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment