Skip to content

Commit

Permalink
Fix template
Browse files Browse the repository at this point in the history
  • Loading branch information
WiZeYAR committed Jan 1, 2025
1 parent f313f61 commit 700dc8d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class Application(BaseApplication):
await super().start(blocking=blocking)

{% for op in ops if op.action == "send" -%}
{%- set in_type = "Union[" + (op.input_types | join(" | ")) + "]" -%}
{%- set out_type = "Union[" + (op.output_types | join(" | ") if op.output_types else "None") + "]" -%}
{%- set in_type = "Union[" + (op.input_types | join(", ")) + "]" -%}
{%- set out_type = "Union[" + (op.output_types | join(", ") if op.output_types else "None") + "]" -%}
{%- set callback_type = "Callable[["+ in_type + "], Awaitable[" + out_type + "]" + "]" -%}
{%- set send_method = "publish" if out_type == "None" else "request" -%}
{%- set routing_key_literal = '"' + op.routing_key + '"' if op.routing_key else "None" -%}
Expand Down

0 comments on commit 700dc8d

Please sign in to comment.