Skip to content

Commit

Permalink
Support for postponed annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
haizaar authored Nov 30, 2023
1 parent c85dc59 commit b81ef60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions_framework/_typed_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

def register_typed_event(decorator_type, func):
try:
sig = signature(func)
sig = signature(func, eval_str=True)
annotation_type = list(sig.parameters.values())[0].annotation
input_type = _select_input_type(decorator_type, annotation_type)
_validate_input_type(input_type)
Expand Down

0 comments on commit b81ef60

Please sign in to comment.