Skip to content

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

Fix code formatting issues

Marcin Gębalafdceb17f1ebf
diff --git a/saleor/graphql/account/resolvers.py b/saleor/graphql/account/resolvers.py
index b32ecbd5ea..2cc3c0497f 100644
--- a/saleor/graphql/account/resolvers.py
+++ b/saleor/graphql/account/resolvers.py
@@ -1,7 +1,6 @@
from ...account import models
from ..utils import filter_by_query_param
-
USER_SEARCH_FIELDS = (
'email', 'default_shipping_address__first_name',
'default_shipping_address__last_name', 'default_shipping_address__city',
diff --git a/saleor/graphql/core/mutations.py b/saleor/graphql/core/mutations.py
index 5a6154a211..aeb8e4ccc9 100644
--- a/saleor/graphql/core/mutations.py
+++ b/saleor/graphql/core/mutations.py
@@ -134,14 +134,14 @@ class ModelMutation(BaseMutation):
def is_list_of_ids(field):
return (
- isinstance(field.type, graphene.List) and
- field.type.of_type == graphene.ID)
+ isinstance(field.type, graphene.List)
+ and field.type.of_type == graphene.ID)
def is_id_field(field):
return (
- field.type == graphene.ID or
- isinstance(field.type, graphene.NonNull) and
- field.type.of_type == graphene.ID)
+ field.type == graphene.ID
+ or isinstance(field.type, graphene.NonNull)
+ and field.type.of_type == graphene.ID)
def is_upload_field(field):
if hasattr(field.type, 'of_type'):
@@ -158,7 +158,8 @@ class ModelMutation(BaseMutation):
# handle list of IDs field
if value is not None and is_list_of_ids(field):
instances = cls.get_nodes_or_error(
- value, errors=errors, field=field_name) if value else []
+ value, errors=errors,
+ field=field_name) if value else []
cleaned_input[field_name] = instances
# handle ID field