Skip to content

Commit 424627d

Browse files
committed
fixes for pep8/pep484
Change-Id: Ic6c0ec5dcc08acf861b6589299c83b178824d440
1 parent ca346e6 commit 424627d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

dogpile/cache/region.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,9 @@ def _get_cache_value(
823823
)
824824
return value
825825

826-
def _unexpired_value_fn(self, expiration_time, ignore_expiration):
826+
def _unexpired_value_fn(
827+
self, expiration_time: Optional[float], ignore_expiration: bool
828+
) -> Callable[[CacheReturnType], CacheReturnType]:
827829
if ignore_expiration:
828830
return lambda value: value
829831
else:

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ignore =
55
A003,A005
66
D,
77
E203,E305,E711,E712,E721,E722,E741,
8+
I300,
89
N801,N802,N806,
910
RST304,RST303,RST299,RST399,
1011
W503,W504

0 commit comments

Comments
 (0)