Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
maaktweluit committed Sep 11, 2019
1 parent edc4ff8 commit 9302310
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions golem/task/taskserver.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
import functools
import asyncio
import itertools
import logging
import os
Expand Down Expand Up @@ -307,7 +306,9 @@ def resume(self):
CoreTask.VERIFICATION_QUEUE.resume()

def quit(self):
defer_rtm_quit = deferred_from_future(self.requested_task_manager.quit())
defer_rtm_quit = deferred_from_future(
self.requested_task_manager.quit()
)
sync_wait(defer_rtm_quit)
self.task_computer.quit()

Expand Down
2 changes: 1 addition & 1 deletion tests/golem/task/test_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ def test_removing_duplicate_subtasks(self, *_):

class TestGetFragments(ProviderBase, TwistedTestCase):
@defer.inlineCallbacks
def _create_task(self) -> taskbase.Task:
def _create_task(self) -> defer.Deferred:
task = self.client.task_manager.create_task(self.t_dict)
with mock.patch('os.path.getsize', return_value=123):
result = yield rpc._prepare_task(self.client, task, force=False)
Expand Down

0 comments on commit 9302310

Please sign in to comment.