Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Remove return tuple in process_checkout_lines

Michał Sipa4b9f9fadb60a
diff --git a/saleor/graphql/checkout/mutations.py b/saleor/graphql/checkout/mutations.py
index b5166bb336..d5f3d172f1 100644
--- a/saleor/graphql/checkout/mutations.py
+++ b/saleor/graphql/checkout/mutations.py
@@ -515,9 +515,7 @@ class CheckoutShippingAddressUpdate(BaseMutation, I18nMixin):
error_type_field = "checkout_errors"
@classmethod
- def process_checkout_lines(
- cls, lines, country
- ) -> Tuple[List[product_models.ProductVariant], List[int]]:
+ def process_checkout_lines(cls, lines, country) -> None:
variant_ids = [line.variant.id for line in lines]
variants = list(
product_models.ProductVariant.objects.filter(
@@ -528,8 +526,6 @@ class CheckoutShippingAddressUpdate(BaseMutation, I18nMixin):
check_lines_quantity(variants, quantities, country)
- return variants, quantities
-
@classmethod
def perform_mutation(cls, _root, info, checkout_id, shipping_address):
pk = from_global_id_strict_type(checkout_id, Checkout, field="checkout_id")