Skip to content

Commit e6da128

Browse files
Update ariadne_codegen/contrib/client_forward_refs.py
Co-authored-by: DamianCzajkowski <[email protected]>
1 parent 967e524 commit e6da128

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ariadne_codegen/contrib/client_forward_refs.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,7 @@ def _update_imports(self, module: ast.Module):
279279
# unless that's the type we return. This behaviour can differ if you use
280280
# a plugin such as `ShorterResultsPlugin` that will import a type that
281281
# is different from the type returned.
282-
return_types_not_used_as_input.update(
283-
{k for k in self.imported_in_method if k not in self.input_and_return_types}
284-
)
282+
return_types_not_used_as_input |= self.imported_in_method - self.input_and_return_types
285283

286284
if len(return_types_not_used_as_input) == 0:
287285
return None

0 commit comments

Comments
 (0)