Typed value variable in maybe_coroutine
This commit is contained in:
1 parent
93311d51d6
commit
e721b0f84e
1 file changed
+1
-1
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user