Skip to content

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

Apply suggestions from code review

jxltom4906a4cfd1ee
diff --git a/saleor/account/thumbnails.py b/saleor/account/thumbnails.py
index 1e48e833ab..21f1ff9736 100644
--- a/saleor/account/thumbnails.py
+++ b/saleor/account/thumbnails.py
@@ -5,7 +5,7 @@ from .models import User
@shared_task
def create_user_avatar_thumbnails(user_id):
- """ Creates thumbnails for user avatar."""
+ """Creates thumbnails for user avatar."""
create_thumbnails(
pk=user_id,
model=User,
diff --git a/saleor/graphql/account/types.py b/saleor/graphql/account/types.py
index 45ccaffe02..7723d37b8c 100644
--- a/saleor/graphql/account/types.py
+++ b/saleor/graphql/account/types.py
@@ -97,7 +97,7 @@ class User(CountableDjangoObjectType):
permissions = graphene.List(
PermissionDisplay, description='List of user\'s permissions.')
avatar = graphene.Field(
- Image, size=graphene.Int(description='Size of the avatar'))
+ Image, size=graphene.Int(description='Size of the avatar.'))
class Meta:
exclude_fields = [
diff --git a/saleor/graphql/core/types/common.py b/saleor/graphql/core/types/common.py
index e968fefebf..2fad5e7c28 100644
--- a/saleor/graphql/core/types/common.py
+++ b/saleor/graphql/core/types/common.py
@@ -64,7 +64,7 @@ class Image(graphene.ObjectType):
@staticmethod
def get_adjusted(image, alt, size, rendition_key_set, info):
- """ Return Image adjusted with given size. """
+ """Return Image adjusted with given size."""
if size:
url = get_thumbnail(