Typed value
variable in maybe_coroutine
This commit is contained in:
parent
93311d51d6
commit
e721b0f84e
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user