Skip to content

Commit e820226

Browse files
committed
print_ast: use wrap util function in more places
Replicates graphql/graphql-js@d0eae6f
1 parent 7355769 commit e820226

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/graphql/language/printer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def leave_union_type_definition(node: PrintedNode, *_args: Any) -> str:
278278
"union",
279279
node.name,
280280
join(node.directives, " "),
281-
"= " + join(node.types, " | ") if node.types else "",
281+
wrap("= ", join(node.types, " | ")),
282282
),
283283
" ",
284284
)
@@ -360,7 +360,7 @@ def leave_union_type_extension(node: PrintedNode, *_args: Any) -> str:
360360
"extend union",
361361
node.name,
362362
join(node.directives, " "),
363-
"= " + join(node.types, " | ") if node.types else "",
363+
wrap("= ", join(node.types, " | ")),
364364
),
365365
" ",
366366
)

0 commit comments

Comments
 (0)