missing None for optional field + pylint

This commit is contained in:
Victor Shyba 2019-02-13 20:44:38 -03:00 committed by Lex Berezhny
parent 5c1ab42277
commit b6df2b9d28
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ async def get_next_available_file_name(loop: asyncio.BaseEventLoop, download_dir
class StreamAssembler:
def __init__(self, loop: asyncio.BaseEventLoop, blob_manager: 'BlobFileManager', sd_hash: str,
output_file_name: typing.Optional[str]):
output_file_name: typing.Optional[str] = None):
self.output_file_name = output_file_name
self.loop = loop
self.blob_manager = blob_manager

View file

@ -157,7 +157,7 @@ class StreamManager:
async def resume(self):
if self.node:
await self.node.joined.wait()
await self.node.joined.wait()
else:
log.warning("no DHT node given, resuming downloads trusting that we can contact reflector")
t = [