mirror of https://github.com/tiangolo/fastapi.git
🎨 Tweak types
This commit is contained in:
parent
230c550220
commit
c7b0480992
|
|
@ -15,7 +15,7 @@ else: # pragma: no cover
|
|||
from asyncio import iscoroutinefunction
|
||||
|
||||
|
||||
def _unwrapped_call(call: Optional[Callable[..., Any]]) -> Optional[Callable[..., Any]]:
|
||||
def _unwrapped_call(call: Optional[Callable[..., Any]]) -> Any:
|
||||
if call is None:
|
||||
return call # pragma: no cover
|
||||
unwrapped = inspect.unwrap(_impartial(call))
|
||||
|
|
|
|||
Loading…
Reference in New Issue