Skip to content

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

Refactor missed out signatures

NyanKiyoshi277c05b8de4a
diff --git a/saleor/graphql/account/bulk_mutations.py b/saleor/graphql/account/bulk_mutations.py
index 4c25006d53..842558ed62 100644
--- a/saleor/graphql/account/bulk_mutations.py
+++ b/saleor/graphql/account/bulk_mutations.py
@@ -22,7 +22,7 @@ class CustomerBulkDelete(CustomerDeleteMixin, UserBulkDelete):
model = models.User
@classmethod
- def user_is_allowed(cls, user, ids):
+ def user_is_allowed(cls, user, _ids):
return user.has_perm('account.manage_users')
@@ -32,5 +32,5 @@ class StaffBulkDelete(StaffDeleteMixin, UserBulkDelete):
model = models.User
@classmethod
- def user_is_allowed(cls, user, ids):
+ def user_is_allowed(cls, user, _ids):
return user.has_perm('account.manage_staff')
diff --git a/saleor/graphql/discount/bulk_mutations.py b/saleor/graphql/discount/bulk_mutations.py
index e85e88e4b0..89ac949d52 100644
--- a/saleor/graphql/discount/bulk_mutations.py
+++ b/saleor/graphql/discount/bulk_mutations.py
@@ -16,7 +16,7 @@ class SaleBulkDelete(ModelBulkDeleteMutation):
model = models.Sale
@classmethod
- def user_is_allowed(cls, user, ids):
+ def user_is_allowed(cls, user, _ids):
return user.has_perm('discount.manage_discounts')
@@ -32,5 +32,5 @@ class VoucherBulkDelete(ModelBulkDeleteMutation):
model = models.Voucher
@classmethod
- def user_is_allowed(cls, user, ids):
+ def user_is_allowed(cls, user, _ids):
return user.has_perm('discount.manage_discounts')
diff --git a/saleor/graphql/menu/bulk_mutations.py b/saleor/graphql/menu/bulk_mutations.py
index 4a606b7b94..d02b78fd49 100644
--- a/saleor/graphql/menu/bulk_mutations.py
+++ b/saleor/graphql/menu/bulk_mutations.py
@@ -16,7 +16,7 @@ class MenuBulkDelete(ModelBulkDeleteMutation):
model = models.Menu
@classmethod
- def user_is_allowed(cls, user, ids):
+ def user_is_allowed(cls, user, _ids):
return user.has_perm('menu.manage_menus')
@@ -32,5 +32,5 @@ class MenuItemBulkDelete(ModelBulkDeleteMutation):
model = models.MenuItem
@classmethod
- def user_is_allowed(cls, user, ids):
+ def user_is_allowed(cls, user, _ids):
return user.has_perm('menu.manage_menus')
diff --git a/saleor/graphql/order/bulk_mutations/draft_orders.py b/saleor/graphql/order/bulk_mutations/draft_orders.py
index 097a0eb9ca..4e688a07f2 100644
--- a/saleor/graphql/order/bulk_mutations/draft_orders.py
+++ b/saleor/graphql/order/bulk_mutations/draft_orders.py
@@ -22,7 +22,7 @@ class DraftOrderBulkDelete(ModelBulkDeleteMutation):
raise ValidationError({'id': 'Cannot delete non-draft orders.'})
@classmethod
- def user_is_allowed(cls, user, ids):
+ def user_is_allowed(cls, user, _ids):
return user.has_perm('order.manage_orders')
diff --git a/saleor/graphql/page/bulk_mutations.py b/saleor/graphql/page/bulk_mutations.py
index dd7865dd6b..4f952c6749 100644
--- a/saleor/graphql/page/bulk_mutations.py
+++ b/saleor/graphql/page/bulk_mutations.py
@@ -16,7 +16,7 @@ class PageBulkDelete(ModelBulkDeleteMutation):
model = models.Page
@classmethod
- def user_is_allowed(cls, user, ids):
+ def user_is_allowed(cls, user, _ids):
return user.has_perm('page.manage_pages')
diff --git a/saleor/graphql/product/bulk_mutations/attributes.py b/saleor/graphql/product/bulk_mutations/attributes.py
index 2403d8ff45..55c014c042 100644
--- a/saleor/graphql/product/bulk_mutations/attributes.py
+++ b/saleor/graphql/product/bulk_mutations/attributes.py
@@ -16,7 +16,7 @@ class AttributeBulkDelete(ModelBulkDeleteMutation):
model = models.Attribute
@classmethod
- def user_is_allowed(cls, user, ids):
+ def user_is_allowed(cls, user, _ids):
return user.has_perm('product.manage_products')
@@ -32,5 +32,5 @@ class AttributeValueBulkDelete(ModelBulkDeleteMutation):
model = models.AttributeValue
@classmethod
- def user_is_allowed(cls, user, ids):
+ def user_is_allowed(cls, user, _ids):
return user.has_perm('product.manage_products')
diff --git a/saleor/graphql/product/bulk_mutations/products.py b/saleor/graphql/product/bulk_mutations/products.py
index 8bacb87abc..2efaf1e2fd 100644
--- a/saleor/graphql/product/bulk_mutations/products.py
+++ b/saleor/graphql/product/bulk_mutations/products.py
@@ -16,7 +16,7 @@ class CategoryBulkDelete(ModelBulkDeleteMutation):
model = models.Category
@classmethod
- def user_is_allowed(cls, user, ids):
+ def user_is_allowed(cls, user, _ids):
return user.has_perm('product.manage_products')
@@ -32,7 +32,7 @@ class CollectionBulkDelete(ModelBulkDeleteMutation):
model = models.Collection
@classmethod
- def user_is_allowed(cls, user, ids):
+ def user_is_allowed(cls, user, _ids):
return user.has_perm('product.manage_products')
@@ -48,7 +48,7 @@ class ProductBulkDelete(ModelBulkDeleteMutation):
model = models.Product
@classmethod
- def user_is_allowed(cls, user, ids):
+ def user_is_allowed(cls, user, _ids):
return user.has_perm('product.manage_products')
@@ -64,7 +64,7 @@ class ProductVariantBulkDelete(ModelBulkDeleteMutation):
model = models.ProductVariant
@classmethod
- def user_is_allowed(cls, user, ids):
+ def user_is_allowed(cls, user, _ids):
return user.has_perm('product.manage_products')
@@ -80,7 +80,7 @@ class ProductTypeBulkDelete(ModelBulkDeleteMutation):
model = models.ProductType
@classmethod
- def user_is_allowed(cls, user, ids):
+ def user_is_allowed(cls, user, _ids):
return user.has_perm('product.manage_products')
@@ -96,5 +96,5 @@ class ProductImageBulkDelete(ModelBulkDeleteMutation):
model = models.ProductImage
@classmethod
- def user_is_allowed(cls, user, ids):
+ def user_is_allowed(cls, user, _ids):
return user.has_perm('product.manage_products')
diff --git a/saleor/graphql/shipping/bulk_mutations.py b/saleor/graphql/shipping/bulk_mutations.py
index d719f93b27..f92414a394 100644
--- a/saleor/graphql/shipping/bulk_mutations.py
+++ b/saleor/graphql/shipping/bulk_mutations.py
@@ -16,7 +16,7 @@ class ShippingZoneBulkDelete(ModelBulkDeleteMutation):
model = models.ShippingZone
@classmethod
- def user_is_allowed(cls, user, ids):
+ def user_is_allowed(cls, user, _ids):
return user.has_perm('shipping.manage_shipping')
@@ -32,5 +32,5 @@ class ShippingPriceBulkDelete(ModelBulkDeleteMutation):
model = models.ShippingMethod
@classmethod
- def user_is_allowed(cls, user, ids):
+ def user_is_allowed(cls, user, _ids):
return user.has_perm('shipping.manage_shipping')