Skip to content

Commit

Permalink
ignore mypy callable bug for now
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercoms authored Oct 6, 2022
1 parent e4bc092 commit 0dc7591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastapi/dependencies/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def get_typed_signature(call: Callable[..., Any]) -> inspect.Signature:
or isinstance(call, MethodType)
or isinstance(call, BuiltinFunctionType)
)
true_call = call if is_true_function else call.__call__
true_call = call if is_true_function else call.__call__ # type: ignore
type_hints = get_type_hints(true_call)
typed_params = [
inspect.Parameter(
Expand Down

0 comments on commit 0dc7591

Please sign in to comment.