Fixed mypy

This commit is contained in:
Alex Root Junior 2022-08-14 16:13:41 +03:00
parent 55af0148c8
commit abf0715413
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC

View file

@ -292,7 +292,8 @@ class Bot(ContextInstanceMixin["Bot"]):
try:
if isinstance(destination, (str, pathlib.Path)):
return await self.__download_file(destination=destination, stream=stream)
await self.__download_file(destination=destination, stream=stream)
return None
else:
return await self.__download_file_binary_io(
destination=destination, seek=seek, stream=stream