diff options
author | 2021-03-06 12:14:23 +0000 | |
---|---|---|
committer | 2021-03-06 12:14:23 +0000 | |
commit | 50a344d5caa006df1cbb033da4101b6cfa71529c (patch) | |
tree | 89df475e7eeabaef049b31d0a8301f2417621f13 | |
parent | Convert method to static as it doesn't use class attributes. (diff) |
Fix return type of in_executor. Its return type varies, based on the Callable given.
-rw-r--r-- | bot/exts/evergreen/profile_pic_modification/pfp_modify.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/evergreen/profile_pic_modification/pfp_modify.py b/bot/exts/evergreen/profile_pic_modification/pfp_modify.py index 45a41e67..bba688aa 100644 --- a/bot/exts/evergreen/profile_pic_modification/pfp_modify.py +++ b/bot/exts/evergreen/profile_pic_modification/pfp_modify.py @@ -18,7 +18,7 @@ log = logging.getLogger(__name__) _EXECUTOR = ThreadPoolExecutor(10) -async def in_executor(func: t.Callable, *args) -> asyncio.Future: +async def in_executor(func: t.Callable, *args) -> t.Any: """Allows non-async functions to work in async functions.""" log.trace(f"Running {func.__name__} in an executor.") loop = asyncio.get_event_loop() |