Typed value variable in maybe_coroutine

This commit is contained in:
Sengolda 2021-10-28 01:29:51 +05:30 committed by GitHub
parent 93311d51d6
commit e721b0f84e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -508,7 +508,7 @@ def _parse_ratelimit_header(request: Any, *, use_clock: bool = False) -> float:
async def maybe_coroutine(f: Callable[..., Any], *args: Any, **kwargs: Any) -> Callable[..., Any]:
value = f(*args, **kwargs)
value: Any = f(*args, **kwargs)
if _isawaitable(value):
return await value
else: