Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3591b3 commit f412d36Copy full SHA for f412d36
1 file changed
fastapi/dependencies/utils.py
@@ -245,12 +245,7 @@ def is_scalar_sequence_field(field: ModelField) -> bool:
245
246
def get_typed_signature(call: Callable[..., Any]) -> inspect.Signature:
247
signature = inspect.signature(call)
248
- nsobj = call
249
- while hasattr(nsobj, "__wrapped__"):
250
- # The __wrapped__ attribute is set by decorators, e.g. functools.wraps.
251
- # This while loop allows rereferencing forward references on decorated
252
- # methods.
253
- nsobj = nsobj.__wrapped__ # type: ignore
+ nsobj = inspect.unwrap(call)
254
globalns = getattr(nsobj, "__globals__", {})
255
typed_params = [
256
inspect.Parameter(
0 commit comments