Skip to content

Commit

Permalink
Add union instead pipe to fix 3.9 python version tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianCzajkowski committed Jun 11, 2024
1 parent 9ff43e6 commit c4d28fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ariadne_codegen/client_generators/custom_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def generate_product_type_method(
return_keywords = []
field_class_name = generate_name(class_name)
field_kwonlyargs = []
field_kw_defaults: List[ast.expr | None] = []
field_kw_defaults: List[Union[ast.expr, None]] = []
for arg_name, argument in arguments.items():
argument_final_type = get_final_type(argument.type)
field_kwonlyargs.append(
Expand Down

0 comments on commit c4d28fc

Please sign in to comment.