Skip to content

Commit e611a62

Browse files
committed
mypy: ignore default_timeout can be None
mypy: ignore `default_timeout` can be `None`
1 parent 8da08c2 commit e611a62

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/626.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix mypy linting

tests/test_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def test_set_call_empty_pipeline(self, cache: RedisCache, mocker: MockerFixture)
212212

213213
if isinstance(cache.client, herd.HerdClient):
214214
default_timeout = cache.client._backend.default_timeout
215-
herd_timeout = (default_timeout + herd.CACHE_HERD_TIMEOUT) * 1000
215+
herd_timeout = (default_timeout + herd.CACHE_HERD_TIMEOUT) * 1000 # type: ignore # noqa
216216
herd_pack_value = cache.client._pack(value, default_timeout)
217217
mocked_set.assert_called_once_with(
218218
cache.client.make_key(key, version=None),

0 commit comments

Comments
 (0)