From c4d28fc5439165b3eaf1a7a329d7a767c0f6df7a Mon Sep 17 00:00:00 2001 From: Damian Czajkowski Date: Tue, 11 Jun 2024 13:54:21 +0200 Subject: [PATCH] Add union instead pipe to fix 3.9 python version tests --- ariadne_codegen/client_generators/custom_fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ariadne_codegen/client_generators/custom_fields.py b/ariadne_codegen/client_generators/custom_fields.py index 47db445..b223b40 100644 --- a/ariadne_codegen/client_generators/custom_fields.py +++ b/ariadne_codegen/client_generators/custom_fields.py @@ -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(