Skip to content

Commit 57becbb

Browse files
fix(event_handler): fix forward references resolution in OpenAPI (#5885)
fix(event_handler): fix typo in OpenAPI type resolution parser" Co-authored-by: Jason Tuck <[email protected]>
1 parent 4a8d4e8 commit 57becbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: aws_lambda_powertools/event_handler/openapi/dependant.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def get_typed_signature(call: Callable[..., Any]) -> inspect.Signature:
106106
signature = inspect.signature(call)
107107

108108
# Gets the global namespace for the call. This is used to resolve forward references.
109-
globalns = getattr(call, "__global__", {})
109+
globalns = getattr(call, "__globals__", {})
110110

111111
typed_params = [
112112
inspect.Parameter(

0 commit comments

Comments
 (0)