From 0859508a6422bc57b54060ee504f3166e8536d9e Mon Sep 17 00:00:00 2001 From: Lucas Wiman Date: Mon, 2 Jul 2018 12:57:14 -0700 Subject: [PATCH] Fix E123 closing bracket does not match indentation of opening bracket's line --- model_utils/choices.py | 4 ++-- model_utils/managers.py | 4 ++-- tests/test_fields/test_status_field.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/model_utils/choices.py b/model_utils/choices.py index c036cf4..681e44b 100644 --- a/model_utils/choices.py +++ b/model_utils/choices.py @@ -92,7 +92,7 @@ class Choices(object): raise ValueError( "Choices can't take a list of length %s, only 2 or 3" % len(choice) - ) + ) else: store((choice, choice, choice)) @@ -132,7 +132,7 @@ class Choices(object): return '%s(%s)' % ( self.__class__.__name__, ', '.join(("%s" % repr(i) for i in self._triples)) - ) + ) def __contains__(self, item): return item in self._db_values diff --git a/model_utils/managers.py b/model_utils/managers.py index 98a2a54..b760ffd 100644 --- a/model_utils/managers.py +++ b/model_utils/managers.py @@ -76,7 +76,7 @@ class InheritanceQuerySetMixin(object): raise ValueError( '%r is not in the discovered subclasses, tried: %s' % ( subclass, ', '.join(calculated_subclasses)) - ) + ) subclasses = verified_subclasses # workaround https://code.djangoproject.com/ticket/16855 @@ -159,7 +159,7 @@ class InheritanceQuerySetMixin(object): if isinstance(rel.field, OneToOneField) and issubclass(rel.field.model, model) and model is not rel.field.model - ] + ] subclasses = [] if levels: diff --git a/tests/test_fields/test_status_field.py b/tests/test_fields/test_status_field.py index 5f077da..dc0f223 100644 --- a/tests/test_fields/test_status_field.py +++ b/tests/test_fields/test_status_field.py @@ -6,7 +6,7 @@ from model_utils.fields import StatusField from tests.models import ( Article, StatusFieldDefaultFilled, StatusFieldDefaultNotFilled, StatusFieldChoicesName, - ) +) class StatusFieldTests(TestCase):