Skip to content

Commit 04dccae

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7dcc366 commit 04dccae

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

django_redis/cache.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313

1414

1515
def omit_exception(
16-
method: Optional[Callable] = None, return_value: Optional[Any] = None, gen=False
16+
method: Optional[Callable] = None,
17+
return_value: Optional[Any] = None,
18+
gen=False,
1719
):
1820
"""
1921
Simple decorator that intercepts connection

tests/test_cache_options.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
from typing import cast
44

55
import pytest
6-
from django.core.cache import caches, cache as default_cache
6+
from django.core.cache import cache as default_cache
7+
from django.core.cache import caches
78
from pytest import LogCaptureFixture
89
from redis.exceptions import ConnectionError as RedisConnectionError
910

0 commit comments

Comments
 (0)