Skip to content

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

Improve readiblity by adding empty line in mixin definition

Aleksander Spyrab67d680005c2
diff --git a/saleor/graphql/account/mutations/base.py b/saleor/graphql/account/mutations/base.py
index 3cd62c1d5c..3aa124ba05 100644
--- a/saleor/graphql/account/mutations/base.py
+++ b/saleor/graphql/account/mutations/base.py
@@ -46,6 +46,7 @@ class AccountErrorMixin:
graphene.NonNull(AccountError),
description="List of errors that occurred executing the mutation.",
)
+
ERROR_TYPE_CLASS = AccountError
ERROR_TYPE_FIELD = "account_errors"
diff --git a/saleor/graphql/checkout/mutations.py b/saleor/graphql/checkout/mutations.py
index ce324fce7f..dc4ad711d7 100644
--- a/saleor/graphql/checkout/mutations.py
+++ b/saleor/graphql/checkout/mutations.py
@@ -56,6 +56,7 @@ class CheckoutErrorMixin:
graphene.NonNull(CheckoutError),
description="List of errors that occurred executing the mutation.",
)
+
ERROR_TYPE_CLASS = CheckoutError
ERROR_TYPE_FIELD = "checkout_errors"
diff --git a/saleor/graphql/extensions/mutations.py b/saleor/graphql/extensions/mutations.py
index d46ab1aac0..e65100f499 100644
--- a/saleor/graphql/extensions/mutations.py
+++ b/saleor/graphql/extensions/mutations.py
@@ -11,6 +11,7 @@ class ExtensionsErrorMixin:
graphene.NonNull(ExtensionsError),
description="List of errors that occurred executing the mutation.",
)
+
ERROR_TYPE_CLASS = ExtensionsError
ERROR_TYPE_FIELD = "extensions_errors"
diff --git a/saleor/graphql/giftcard/mutations.py b/saleor/graphql/giftcard/mutations.py
index be6afae9b7..5de8afefee 100644
--- a/saleor/graphql/giftcard/mutations.py
+++ b/saleor/graphql/giftcard/mutations.py
@@ -21,6 +21,7 @@ class GiftcardErrorMixin:
graphene.NonNull(GiftcardError),
description="List of errors that occurred executing the mutation.",
)
+
ERROR_TYPE_CLASS = GiftcardError
ERROR_TYPE_FIELD = "gift_card_errors"
diff --git a/saleor/graphql/menu/mutations.py b/saleor/graphql/menu/mutations.py
index 74ec4fff7c..13421f99d5 100644
--- a/saleor/graphql/menu/mutations.py
+++ b/saleor/graphql/menu/mutations.py
@@ -24,6 +24,7 @@ class MenuErrorMixin:
graphene.NonNull(MenuError),
description="List of errors that occurred executing the mutation.",
)
+
ERROR_TYPE_CLASS = MenuError
ERROR_TYPE_FIELD = "menu_errors"
diff --git a/saleor/graphql/order/mutations/base.py b/saleor/graphql/order/mutations/base.py
index 72fff6b0dc..be5217cf01 100644
--- a/saleor/graphql/order/mutations/base.py
+++ b/saleor/graphql/order/mutations/base.py
@@ -9,6 +9,7 @@ class OrderErrorMixin:
graphene.NonNull(OrderError),
description="List of errors that occurred executing the mutation.",
)
+
ERROR_TYPE_CLASS = OrderError
ERROR_TYPE_FIELD = "order_errors"
diff --git a/saleor/graphql/payment/mutations.py b/saleor/graphql/payment/mutations.py
index f21309ff3f..0a785726a1 100644
--- a/saleor/graphql/payment/mutations.py
+++ b/saleor/graphql/payment/mutations.py
@@ -29,6 +29,7 @@ class PaymentErrorMixin:
graphene.NonNull(common_types.PaymentError),
description="List of errors that occurred executing the mutation.",
)
+
ERROR_TYPE_CLASS = common_types.PaymentError
ERROR_TYPE_FIELD = "payment_errors"
diff --git a/saleor/graphql/product/mutations/base.py b/saleor/graphql/product/mutations/base.py
index 56090cb325..779b81f9fc 100644
--- a/saleor/graphql/product/mutations/base.py
+++ b/saleor/graphql/product/mutations/base.py
@@ -9,6 +9,7 @@ class ProductErrorMixin:
graphene.NonNull(ProductError),
description="List of errors that occurred executing the mutation.",
)
+
ERROR_TYPE_CLASS = ProductError
ERROR_TYPE_FIELD = "product_errors"
diff --git a/saleor/graphql/shipping/mutations.py b/saleor/graphql/shipping/mutations.py
index 587153814c..b8bd7871c8 100644
--- a/saleor/graphql/shipping/mutations.py
+++ b/saleor/graphql/shipping/mutations.py
@@ -16,6 +16,7 @@ class ShippingErrorMixin:
graphene.NonNull(ShippingError),
description="List of errors that occurred executing the mutation.",
)
+
ERROR_TYPE_CLASS = ShippingError
ERROR_TYPE_FIELD = "shipping_errors"
diff --git a/saleor/graphql/shop/mutations.py b/saleor/graphql/shop/mutations.py
index a39838a682..01126544bd 100644
--- a/saleor/graphql/shop/mutations.py
+++ b/saleor/graphql/shop/mutations.py
@@ -20,6 +20,7 @@ class ShopErrorMixin:
graphene.NonNull(ShopError),
description="List of errors that occurred executing the mutation.",
)
+
ERROR_TYPE_CLASS = ShopError
ERROR_TYPE_FIELD = "shop_errors"