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:
|
class StreamAssembler:
|
||||||
def __init__(self, loop: asyncio.BaseEventLoop, blob_manager: 'BlobFileManager', sd_hash: str,
|
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.output_file_name = output_file_name
|
||||||
self.loop = loop
|
self.loop = loop
|
||||||
self.blob_manager = blob_manager
|
self.blob_manager = blob_manager
|
||||||
|
|
|
@ -157,7 +157,7 @@ class StreamManager:
|
||||||
|
|
||||||
async def resume(self):
|
async def resume(self):
|
||||||
if self.node:
|
if self.node:
|
||||||
await self.node.joined.wait()
|
await self.node.joined.wait()
|
||||||
else:
|
else:
|
||||||
log.warning("no DHT node given, resuming downloads trusting that we can contact reflector")
|
log.warning("no DHT node given, resuming downloads trusting that we can contact reflector")
|
||||||
t = [
|
t = [
|
||||||
|
|
Loading…
Add table
Reference in a new issue