Skip to content

Commit 93822a3

Browse files
committed
Release v7.0.3.
1 parent 57d2e48 commit 93822a3

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
v7.0.3 (2026-03-05)
2+
===================
3+
4+
- Fix ``DeprecationWarning`` when creating an autospec mock with
5+
``@cachedmethod`` decorations.
6+
7+
18
v7.0.2 (2026-03-02)
29
===================
310

src/cachetools/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"cachedmethod",
1313
)
1414

15-
__version__ = "7.0.2"
15+
__version__ = "7.0.3"
1616

1717
import collections
1818
import collections.abc

tests/test_cachedmethod.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,5 @@ def test_autospec_no_warnings(self):
681681

682682
with warnings.catch_warnings(record=True) as w:
683683
warnings.simplefilter("always")
684-
685-
_ = unittest.mock.create_autospec(Cached, instance=True)
686-
684+
unittest.mock.create_autospec(Cached, instance=True)
687685
self.assertEqual(len(w), 0)

0 commit comments

Comments
 (0)