2026-09-27
- #604: Fixed
duplicate_iterators=Truefor async functions spied withmocker.spy. - #611: Fixed async mock assertion introspection to use awaited arguments instead of the latest call's arguments.
- #606:
mocker.resetall(return_value=True, side_effect=True)now also applies to non-callable mocks, such as those returned bymocker.create_autospec(SomeClass, instance=True). Previously both arguments were silently ignored for them. - #547: Added
SpyTypefor annotatingmocker.spyresults. - Dropped support for EOL Python 3.9.
- #147: Removed handling of
RuntimeError: stop called on unstarted patcher, which can no longer occur in the supported Python versions. - Added support for Python 3.15.