missing None for optional field + pylint
This commit is contained in:
parent
5c1ab42277
commit
b6df2b9d28
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue