Skip to content

Commit

Permalink
if there's no type, fallback to Any
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercoms authored Oct 6, 2022
1 parent 0dc7591 commit fe9d827
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 @@ -259,7 +259,7 @@ def get_typed_signature(call: Callable[..., Any]) -> inspect.Signature:
name=param.name,
kind=param.kind,
default=param.default,
annotation=type_hints[param.name],
annotation=type_hints.get(param.name, Any),
)
for param in signature.parameters.values()
]
Expand Down

0 comments on commit fe9d827

Please sign in to comment.