|
|
@ -199,7 +199,6 @@ def get_flat_params(dependant: Dependant) -> list[ModelField]: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _get_signature(call: Callable[..., Any]) -> inspect.Signature: |
|
|
def _get_signature(call: Callable[..., Any]) -> inspect.Signature: |
|
|
if sys.version_info >= (3, 10): |
|
|
|
|
|
try: |
|
|
try: |
|
|
signature = inspect.signature(call, eval_str=True) |
|
|
signature = inspect.signature(call, eval_str=True) |
|
|
except NameError: |
|
|
except NameError: |
|
|
@ -211,8 +210,6 @@ def _get_signature(call: Callable[..., Any]) -> inspect.Signature: |
|
|
signature = inspect.signature(call, annotation_format=Format.FORWARDREF) |
|
|
signature = inspect.signature(call, annotation_format=Format.FORWARDREF) |
|
|
else: |
|
|
else: |
|
|
signature = inspect.signature(call) |
|
|
signature = inspect.signature(call) |
|
|
else: |
|
|
|
|
|
signature = inspect.signature(call) |
|
|
|
|
|
return signature |
|
|
return signature |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|