Skip to content

Commit 4b9dfef

Browse files
committed
[#305] Fixed some pre-commit failures
1 parent d72b7e8 commit 4b9dfef

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

django_celery_results/backends/database.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import binascii
22
import json
3-
from typing import Mapping
43

54
from celery import maybe_signature, states
65
from celery.backends.base import BaseDictBackend, get_current_task

django_celery_results/models/generic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ class ChordCounter(models.Model):
5252
class Meta:
5353
app_label = "django_celery_results"
5454

55-
5655
def group_result(self, app=None):
5756
"""Return the GroupResult of self.
5857

django_celery_results/models/helpers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def taskresult_model():
99
"""Return the TaskResult model that is active in this project."""
1010
if not hasattr(settings, 'CELERY_RESULTS_TASKRESULT_MODEL'):
1111
return TaskResult
12-
12+
1313
try:
1414
return apps.get_model(
1515
settings.CELERY_RESULTS_TASKRESULT_MODEL
@@ -26,11 +26,12 @@ def taskresult_model():
2626
"been installed"
2727
)
2828

29+
2930
def groupresult_model():
3031
"""Return the GroupResult model that is active in this project."""
3132
if not hasattr(settings, 'CELERY_RESULTS_GROUPRESULT_MODEL'):
3233
return GroupResult
33-
34+
3435
try:
3536
return apps.get_model(
3637
settings.CELERY_RESULTS_GROUPRESULT_MODEL

django_celery_results/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def get_task_props_extension(request, task_props):
2626
if not extend_task_props_callback:
2727
return {}
2828

29-
task_props_extension = extend_task_props_callback(request, task_props) or {}
29+
task_props_extension = extend_task_props_callback(request, task_props) or {} # noqa E501
3030
if not isinstance(task_props_extension, Mapping):
3131
raise ImproperlyConfigured(
3232
"CELERY_RESULTS_EXTEND_TASK_PROPS_CALLBACK must return a Mapping."

0 commit comments

Comments
 (0)