Skip to content

Commit 2135344

Browse files
fix(deps): update dependency requests-cache to v0.9.8 (#518)
* chore: fix import * build(deps): pin requests-cache --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: W. Augusto Andreoli <[email protected]>
1 parent a7c8859 commit 2135344

File tree

4 files changed

+49
-42
lines changed

4 files changed

+49
-42
lines changed

poetry.lock

Lines changed: 46 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ sphinx = { version = "*", optional = true }
103103
sphinx_rtd_theme = { version = "*", optional = true }
104104
sphobjinv = { version = "*", optional = true }
105105
sphinx-gitref = { version = "*", optional = true }
106-
requests-cache = ">=0.9.2" # This version introduced requests_cache.cache_control.NEVER_EXPIRE
106+
requests-cache = ">=0.9.7" # This version uses requests_cache.policy.expiration
107107

108108
[tool.poetry.extras]
109109
lint = ["pylint"]

src/nitpick/style/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from datetime import timedelta
66

77
from loguru import logger
8-
from requests_cache.cache_control import DO_NOT_CACHE, NEVER_EXPIRE
8+
from requests_cache.policy.expiration import DO_NOT_CACHE, NEVER_EXPIRE
99

1010
from nitpick.enums import CachingEnum
1111

tests/test_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import pytest
55
from freezegun import freeze_time
6-
from requests_cache.cache_control import DO_NOT_CACHE, NEVER_EXPIRE
6+
from requests_cache.policy.expiration import DO_NOT_CACHE, NEVER_EXPIRE
77

88
from nitpick.enums import CachingEnum
99
from nitpick.style.cache import parse_cache_option

0 commit comments

Comments
 (0)