Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Deal with some lint warnings
Marek Brzóska68bffc8e421c
diff --git a/lint.py b/lint.pyindex a0568d05c4..7e91042b99 100755--- a/lint.py+++ b/lint.py@@ -52,7 +52,7 @@ DISABLED_WARNINGS = [# 'E1003', # Bad first argument %r given to super class Used when another argument than the current class is given as first argument of the super builtin.'E1101', # %s %r has no %r member Used when a variable is accessed for an unexistent member.# 'E1102', # %s is not callable Used when an object being called has been inferred to a non callable object- # 'E1103', # %s %r has no %r member (but some types could not be inferred) Used when a variable is accessed for an unexistent member, but astng was not able to interpret all possible types of this variable.+ 'E1103', # %s %r has no %r member (but some types could not be inferred) Used when a variable is accessed for an unexistent member, but astng was not able to interpret all possible types of this variable.# 'E1111', # Assigning to function call which doesn't return Used when an assignment is done on a function call but the inferred function doesn't return anything.# 'E1120', # No value passed for parameter %s in function call Used when a function call passes too few arguments.# 'E1121', # Too many positional arguments for function call Used when a function call passes too many positional arguments.diff --git a/order/forms.py b/order/forms.pyindex 3e7afde393..91b1ad2035 100644--- a/order/forms.py+++ b/order/forms.py@@ -1,6 +1,6 @@from django import formsfrom userprofile.forms import AddressForm-from django.contrib.auth.models import AnonymousUser+class ShippingForm(AddressForm):@@ -22,5 +22,3 @@ class ManagementForm(forms.Form):choice_method = self.fields['choice_method']choice_method.initial = self.CHOICES[1][0]choice_method.widget = choice_method.hidden_widget()--diff --git a/registration/backends.py b/registration/backends.pyindex b52bf14e87..57f6f43f20 100644--- a/registration/backends.py+++ b/registration/backends.py@@ -12,7 +12,7 @@ class EmailPasswordBackend(object):except User.DoesNotExist:return None- def authenticate(self, username=None, password=None, **kwargs):+ def authenticate(self, username=None, password=None, **_kwargs):try:user = User.objects.get(email=username)except User.DoesNotExist: