Skip to content

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

PEP8

Pacu2949e93c76c8c
diff --git a/saleor/graphql/product/mutations/attributes.py b/saleor/graphql/product/mutations/attributes.py
index eb660e9ddf..373cc29e4b 100644
--- a/saleor/graphql/product/mutations/attributes.py
+++ b/saleor/graphql/product/mutations/attributes.py
@@ -121,8 +121,7 @@ class AttributeCreate(AttributeMixin, ModelMutation):
@classmethod
def clean_product_type_variant_attributes(
cls, product_type, type, errors):
- if (
- type == AttributeTypeEnum.VARIANT.name
+ if (type == AttributeTypeEnum.VARIANT.name
and not product_type.has_variants):
cls.add_error(
errors, 'product_type',