From abf0715413b02e632ccd08de4345809015701ef9 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sun, 14 Aug 2022 16:13:41 +0300 Subject: [PATCH] Fixed mypy --- aiogram/client/bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aiogram/client/bot.py b/aiogram/client/bot.py index 16581da0..d8762dba 100644 --- a/aiogram/client/bot.py +++ b/aiogram/client/bot.py @@ -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