File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/asyncapi_python_codegen/generators/amqp/templates Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " asyncapi-python"
3- version = " 0.1.5 "
3+ version = " 0.1.6 "
44license = " Apache-2.0"
55description = " Easily generate type-safe and async Python applications from AsyncAPI 3 specifications."
66authors = [
" Yaroslav Petrov <[email protected] >" ]
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class Application(BaseApplication):
3636
3737 {% for op in ops if op .action == "send" -%}
3838 {% - set in_type = "Union[" + (op .input_types | join (", " )) + "]" -%}
39- {% - set out_type = "Union[" + ( op .output_types | join (", " ) if op .output_types else "None" ) + "] " -%}
39+ {% - set out_type = ( "Union[" + op .output_types | join (", " ) + "]" ) if op .output_types else "None" -%}
4040 {% - set callback_type = "Callable[[" + in_type + "], Awaitable[" + out_type + "]" + "]" -%}
4141 {% - set send_method = "publish" if out_type == "None" else "request" -%}
4242 {% - set routing_key_literal = '"' + op .routing_key + '"' if op .routing_key else "None" -%}
You can’t perform that action at this time.
0 commit comments