Sourced from pytest-mock's releases.
v3.16.0
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.
Sourced from pytest-mock's changelog.
3.16.0
2026-09-27
[#604](https://github.com/pytest-dev/pytest-mock/issues/604) <https://github.com/pytest-dev/pytest-mock/pull/604>_: Fixedduplicate_iterators=Truefor async functions spied withmocker.spy.[#611](https://github.com/pytest-dev/pytest-mock/issues/611) <https://github.com/pytest-dev/pytest-mock/pull/611>_: Fixed async mock assertion introspection to use awaited arguments instead of the latest call's arguments.[#606](https://github.com/pytest-dev/pytest-mock/issues/606) <https://github.com/pytest-dev/pytest-mock/pull/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](https://github.com/pytest-dev/pytest-mock/issues/547) <https://github.com/pytest-dev/pytest-mock/issues/547>_: AddedSpyTypefor annotatingmocker.spyresults.- Dropped support for EOL Python 3.9.
[#147](https://github.com/pytest-dev/pytest-mock/issues/147) <https://github.com/pytest-dev/pytest-mock/issues/147>_: Removed handling ofRuntimeError: stop called on unstarted patcher, which can no longer occur in the supported Python versions.- Added support for Python 3.15.
f3b531f
Release 3.16.071ed673
Fix duplicate_iterators for async spies (#604)0797e3d
Fix async assertion argument introspection (#611)e24c334
docs: import os in the opening usage example (#612)9e7eb7b
[pre-commit.ci] pre-commit autoupdate (#613)445fd4d
[pre-commit.ci] pre-commit autoupdate (#610)a8bd0b1
Honour resetall() arguments for non-callable mocks (#606)6559fdf
[pre-commit.ci] pre-commit autoupdate (#608)466d026
[pre-commit.ci] pre-commit autoupdate (#605)164defe
[pre-commit.ci] pre-commit autoupdate (#603)Sourced from ruff's releases.
0.16.9
Release Notes
Released on 2026-09-24.
Preview features
- [
ruff] Avoid false positives for overloaded division (RUF069) (#28309)Bug fixes
- [
flake8-bugbear] Avoid false positives for calls with keyword arguments (B009,B010,B043) (#28776)- [
flake8-tidy-imports] Allow lazy imports to be used in deferred annotations (TID255) (#28767)Rule changes
- Update LibCST-based fixes for Python 3.15 (#28616)
- [
flake8-pyi] Mention stubs in the diagnostic message (PYI002) (#28542)Documentation
- Fix horizontal overflow on the rules documentation page (#28699)
- Update rules table with category information (#28651)
- [
flake8-annotations] Clarify thatANN401checks return types in addition to arguments (#28334)- [
flake8-bugbear] Document type-checker interaction (B010) (#28509)- [
flake8-comprehensions] Documentmap/generator exception behavior (C417) (#27794)- [
ruff] Mention related isort settings (RUF022) (#28719)Contributors
@qinpei-dev@sanjayrohith@ntBre@webdevsamran@zaniebot@ewdurbin@MichaReiser@spaceone@IbrahimKhan12@devtechedge@GruffElixirInstall ruff 0.16.9
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/ruff/releases/download/0.16.9/ruff-installer.sh | sh
... (truncated)
Sourced from ruff's changelog.
0.16.9
Released on 2026-09-24.
Preview features
- [
ruff] Avoid false positives for overloaded division (RUF069) (#28309)Bug fixes
- [
flake8-bugbear] Avoid false positives for calls with keyword arguments (B009,B010,B043) (#28776)- [
flake8-tidy-imports] Allow lazy imports to be used in deferred annotations (TID255) (#28767)Rule changes
- Update LibCST-based fixes for Python 3.15 (#28616)
- [
flake8-pyi] Mention stubs in the diagnostic message (PYI002) (#28542)Documentation
- Fix horizontal overflow on the rules documentation page (#28699)
- Update rules table with category information (#28651)
- [
flake8-annotations] Clarify thatANN401checks return types in addition to arguments (#28334)- [
flake8-bugbear] Document type-checker interaction (B010) (#28509)- [
flake8-comprehensions] Documentmap/generator exception behavior (C417) (#27794)- [
ruff] Mention related isort settings (RUF022) (#28719)Contributors
@qinpei-dev@sanjayrohith@ntBre@webdevsamran@zaniebot@ewdurbin@MichaReiser@spaceone@IbrahimKhan12@devtechedge@GruffElixir0.16.8
Released on 2026-09-16.
Bug fixes
... (truncated)
0be08a2
Bump version to 0.16.9 (#28882)b4920b7
Rename ruff_cli to ruff_command_line (#28881)47c751b
Update dependency astral-sh/uv to v0.12.18 (#28880)8c244e5
[flake8-comprehensions] Document map/generator
exception behavior (C417...5edf5a1
Use target form in rooster.version_files (#28876)915bb2b
[ty] Prefer existing @ paths over response files in Ruff and ty (#28877)4710e1a
ci(github): update version number in placeholder of issue template (#28871)eedfc62
[ty] Propagate outer type context through cast calls (#28855)ceaa6a0
[ty] Contain rendered code within Markdown fences (#28869)dba0f30
authorize ruff-pre-commit dispatch via OIDC (#28867)Sourced from ruff's releases.
0.16.9
Release Notes
Released on 2026-09-24.
Preview features
- [
ruff] Avoid false positives for overloaded division (RUF069) (#28309)Bug fixes
- [
flake8-bugbear] Avoid false positives for calls with keyword arguments (B009,B010,B043) (#28776)- [
flake8-tidy-imports] Allow lazy imports to be used in deferred annotations (TID255) (#28767)Rule changes
- Update LibCST-based fixes for Python 3.15 (#28616)
- [
flake8-pyi] Mention stubs in the diagnostic message (PYI002) (#28542)Documentation
- Fix horizontal overflow on the rules documentation page (#28699)
- Update rules table with category information (#28651)
- [
flake8-annotations] Clarify thatANN401checks return types in addition to arguments (#28334)- [
flake8-bugbear] Document type-checker interaction (B010) (#28509)- [
flake8-comprehensions] Documentmap/generator exception behavior (C417) (#27794)- [
ruff] Mention related isort settings (RUF022) (#28719)Contributors
@qinpei-dev@sanjayrohith@ntBre@webdevsamran@zaniebot@ewdurbin@MichaReiser@spaceone@IbrahimKhan12@devtechedge@GruffElixirInstall ruff 0.16.9
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/ruff/releases/download/0.16.9/ruff-installer.sh | sh
... (truncated)
Sourced from ruff's changelog.
0.16.9
Released on 2026-09-24.
Preview features
- [
ruff] Avoid false positives for overloaded division (RUF069) (#28309)Bug fixes
- [
flake8-bugbear] Avoid false positives for calls with keyword arguments (B009,B010,B043) (#28776)- [
flake8-tidy-imports] Allow lazy imports to be used in deferred annotations (TID255) (#28767)Rule changes
- Update LibCST-based fixes for Python 3.15 (#28616)
- [
flake8-pyi] Mention stubs in the diagnostic message (PYI002) (#28542)Documentation
- Fix horizontal overflow on the rules documentation page (#28699)
- Update rules table with category information (#28651)
- [
flake8-annotations] Clarify thatANN401checks return types in addition to arguments (#28334)- [
flake8-bugbear] Document type-checker interaction (B010) (#28509)- [
flake8-comprehensions] Documentmap/generator exception behavior (C417) (#27794)- [
ruff] Mention related isort settings (RUF022) (#28719)Contributors
@qinpei-dev@sanjayrohith@ntBre@webdevsamran@zaniebot@ewdurbin@MichaReiser@spaceone@IbrahimKhan12@devtechedge@GruffElixir0.16.8
Released on 2026-09-16.
Bug fixes
... (truncated)
0be08a2
Bump version to 0.16.9 (#28882)b4920b7
Rename ruff_cli to ruff_command_line (#28881)47c751b
Update dependency astral-sh/uv to v0.12.18 (#28880)8c244e5
[flake8-comprehensions] Document map/generator
exception behavior (C417...5edf5a1
Use target form in rooster.version_files (#28876)915bb2b
[ty] Prefer existing @ paths over response files in Ruff and ty (#28877)4710e1a
ci(github): update version number in placeholder of issue template (#28871)eedfc62
[ty] Propagate outer type context through cast calls (#28855)ceaa6a0
[ty] Contain rendered code within Markdown fences (#28869)dba0f30
authorize ruff-pre-commit dispatch via OIDC (#28867)Sourced from ruff's releases.
0.16.9
Release Notes
Released on 2026-09-24.
Preview features
- [
ruff] Avoid false positives for overloaded division (RUF069) (#28309)Bug fixes
- [
flake8-bugbear] Avoid false positives for calls with keyword arguments (B009,B010,B043) (#28776)- [
flake8-tidy-imports] Allow lazy imports to be used in deferred annotations (TID255) (#28767)Rule changes
- Update LibCST-based fixes for Python 3.15 (#28616)
- [
flake8-pyi] Mention stubs in the diagnostic message (PYI002) (#28542)Documentation
- Fix horizontal overflow on the rules documentation page (#28699)
- Update rules table with category information (#28651)
- [
flake8-annotations] Clarify thatANN401checks return types in addition to arguments (#28334)- [
flake8-bugbear] Document type-checker interaction (B010) (#28509)- [
flake8-comprehensions] Documentmap/generator exception behavior (C417) (#27794)- [
ruff] Mention related isort settings (RUF022) (#28719)Contributors
@qinpei-dev@sanjayrohith@ntBre@webdevsamran@zaniebot@ewdurbin@MichaReiser@spaceone@IbrahimKhan12@devtechedge@GruffElixirInstall ruff 0.16.9
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/ruff/releases/download/0.16.9/ruff-installer.sh | sh
... (truncated)
Sourced from ruff's changelog.
0.16.9
Released on 2026-09-24.
Preview features
- [
ruff] Avoid false positives for overloaded division (RUF069) (#28309)Bug fixes
- [
flake8-bugbear] Avoid false positives for calls with keyword arguments (B009,B010,B043) (#28776)- [
flake8-tidy-imports] Allow lazy imports to be used in deferred annotations (TID255) (#28767)Rule changes
- Update LibCST-based fixes for Python 3.15 (#28616)
- [
flake8-pyi] Mention stubs in the diagnostic message (PYI002) (#28542)Documentation
- Fix horizontal overflow on the rules documentation page (#28699)
- Update rules table with category information (#28651)
- [
flake8-annotations] Clarify thatANN401checks return types in addition to arguments (#28334)- [
flake8-bugbear] Document type-checker interaction (B010) (#28509)- [
flake8-comprehensions] Documentmap/generator exception behavior (C417) (#27794)- [
ruff] Mention related isort settings (RUF022) (#28719)Contributors
@qinpei-dev@sanjayrohith@ntBre@webdevsamran@zaniebot@ewdurbin@MichaReiser@spaceone@IbrahimKhan12@devtechedge@GruffElixir0.16.8
Released on 2026-09-16.
Bug fixes
... (truncated)
0be08a2
Bump version to 0.16.9 (#28882)b4920b7
Rename ruff_cli to ruff_command_line (#28881)47c751b
Update dependency astral-sh/uv to v0.12.18 (#28880)8c244e5
[flake8-comprehensions] Document map/generator
exception behavior (C417...5edf5a1
Use target form in rooster.version_files (#28876)915bb2b
[ty] Prefer existing @ paths over response files in Ruff and ty (#28877)4710e1a
ci(github): update version number in placeholder of issue template (#28871)eedfc62
[ty] Propagate outer type context through cast calls (#28855)ceaa6a0
[ty] Contain rendered code within Markdown fences (#28869)dba0f30
authorize ruff-pre-commit dispatch via OIDC (#28867)Sourced from pytest-mock's releases.
v3.16.0
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.
Sourced from pytest-mock's changelog.
3.16.0
2026-09-27
[#604](https://github.com/pytest-dev/pytest-mock/issues/604) <https://github.com/pytest-dev/pytest-mock/pull/604>_: Fixedduplicate_iterators=Truefor async functions spied withmocker.spy.[#611](https://github.com/pytest-dev/pytest-mock/issues/611) <https://github.com/pytest-dev/pytest-mock/pull/611>_: Fixed async mock assertion introspection to use awaited arguments instead of the latest call's arguments.[#606](https://github.com/pytest-dev/pytest-mock/issues/606) <https://github.com/pytest-dev/pytest-mock/pull/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](https://github.com/pytest-dev/pytest-mock/issues/547) <https://github.com/pytest-dev/pytest-mock/issues/547>_: AddedSpyTypefor annotatingmocker.spyresults.- Dropped support for EOL Python 3.9.
[#147](https://github.com/pytest-dev/pytest-mock/issues/147) <https://github.com/pytest-dev/pytest-mock/issues/147>_: Removed handling ofRuntimeError: stop called on unstarted patcher, which can no longer occur in the supported Python versions.- Added support for Python 3.15.
f3b531f
Release 3.16.071ed673
Fix duplicate_iterators for async spies (#604)0797e3d
Fix async assertion argument introspection (#611)e24c334
docs: import os in the opening usage example (#612)9e7eb7b
[pre-commit.ci] pre-commit autoupdate (#613)445fd4d
[pre-commit.ci] pre-commit autoupdate (#610)a8bd0b1
Honour resetall() arguments for non-callable mocks (#606)6559fdf
[pre-commit.ci] pre-commit autoupdate (#608)466d026
[pre-commit.ci] pre-commit autoupdate (#605)164defe
[pre-commit.ci] pre-commit autoupdate (#603)Sourced from ruff's releases.
0.16.9
Release Notes
Released on 2026-09-24.
Preview features
- [
ruff] Avoid false positives for overloaded division (RUF069) (#28309)Bug fixes
- [
flake8-bugbear] Avoid false positives for calls with keyword arguments (B009,B010,B043) (#28776)- [
flake8-tidy-imports] Allow lazy imports to be used in deferred annotations (TID255) (#28767)Rule changes
- Update LibCST-based fixes for Python 3.15 (#28616)
- [
flake8-pyi] Mention stubs in the diagnostic message (PYI002) (#28542)Documentation
- Fix horizontal overflow on the rules documentation page (#28699)
- Update rules table with category information (#28651)
- [
flake8-annotations] Clarify thatANN401checks return types in addition to arguments (#28334)- [
flake8-bugbear] Document type-checker interaction (B010) (#28509)- [
flake8-comprehensions] Documentmap/generator exception behavior (C417) (#27794)- [
ruff] Mention related isort settings (RUF022) (#28719)Contributors
@qinpei-dev@sanjayrohith@ntBre@webdevsamran@zaniebot@ewdurbin@MichaReiser@spaceone@IbrahimKhan12@devtechedge@GruffElixirInstall ruff 0.16.9
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/ruff/releases/download/0.16.9/ruff-installer.sh | sh
... (truncated)
Sourced from ruff's changelog.
0.16.9
Released on 2026-09-24.
Preview features
- [
ruff] Avoid false positives for overloaded division (RUF069) (#28309)Bug fixes
- [
flake8-bugbear] Avoid false positives for calls with keyword arguments (B009,B010,B043) (#28776)- [
flake8-tidy-imports] Allow lazy imports to be used in deferred annotations (TID255) (#28767)Rule changes
- Update LibCST-based fixes for Python 3.15 (#28616)
- [
flake8-pyi] Mention stubs in the diagnostic message (PYI002) (#28542)Documentation
- Fix horizontal overflow on the rules documentation page (#28699)
- Update rules table with category information (#28651)
- [
flake8-annotations] Clarify thatANN401checks return types in addition to arguments (#28334)- [
flake8-bugbear] Document type-checker interaction (B010) (#28509)- [
flake8-comprehensions] Documentmap/generator exception behavior (C417) (#27794)- [
ruff] Mention related isort settings (RUF022) (#28719)Contributors
@qinpei-dev@sanjayrohith@ntBre@webdevsamran@zaniebot@ewdurbin@MichaReiser@spaceone@IbrahimKhan12@devtechedge@GruffElixir0.16.8
Released on 2026-09-16.
Bug fixes
... (truncated)
0be08a2
Bump version to 0.16.9 (#28882)b4920b7
Rename ruff_cli to ruff_command_line (#28881)47c751b
Update dependency astral-sh/uv to v0.12.18 (#28880)8c244e5
[flake8-comprehensions] Document map/generator
exception behavior (C417...5edf5a1
Use target form in rooster.version_files (#28876)915bb2b
[ty] Prefer existing @ paths over response files in Ruff and ty (#28877)4710e1a
ci(github): update version number in placeholder of issue template (#28871)eedfc62
[ty] Propagate outer type context through cast calls (#28855)ceaa6a0
[ty] Contain rendered code within Markdown fences (#28869)dba0f30
authorize ruff-pre-commit dispatch via OIDC (#28867)Sourced from ruff's releases.
0.16.9
Release Notes
Released on 2026-09-24.
Preview features
- [
ruff] Avoid false positives for overloaded division (RUF069) (#28309)Bug fixes
- [
flake8-bugbear] Avoid false positives for calls with keyword arguments (B009,B010,B043) (#28776)- [
flake8-tidy-imports] Allow lazy imports to be used in deferred annotations (TID255) (#28767)Rule changes
- Update LibCST-based fixes for Python 3.15 (#28616)
- [
flake8-pyi] Mention stubs in the diagnostic message (PYI002) (#28542)Documentation
- Fix horizontal overflow on the rules documentation page (#28699)
- Update rules table with category information (#28651)
- [
flake8-annotations] Clarify thatANN401checks return types in addition to arguments (#28334)- [
flake8-bugbear] Document type-checker interaction (B010) (#28509)- [
flake8-comprehensions] Documentmap/generator exception behavior (C417) (#27794)- [
ruff] Mention related isort settings (RUF022) (#28719)Contributors
@qinpei-dev@sanjayrohith@ntBre@webdevsamran@zaniebot@ewdurbin@MichaReiser@spaceone@IbrahimKhan12@devtechedge@GruffElixirInstall ruff 0.16.9
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/ruff/releases/download/0.16.9/ruff-installer.sh | sh
... (truncated)
Sourced from ruff's changelog.
0.16.9
Released on 2026-09-24.
Preview features
- [
ruff] Avoid false positives for overloaded division (RUF069) (#28309)Bug fixes
- [
flake8-bugbear] Avoid false positives for calls with keyword arguments (B009,B010,B043) (#28776)- [
flake8-tidy-imports] Allow lazy imports to be used in deferred annotations (TID255) (#28767)Rule changes
- Update LibCST-based fixes for Python 3.15 (#28616)
- [
flake8-pyi] Mention stubs in the diagnostic message (PYI002) (#28542)Documentation
- Fix horizontal overflow on the rules documentation page (#28699)
- Update rules table with category information (#28651)
- [
flake8-annotations] Clarify thatANN401checks return types in addition to arguments (#28334)- [
flake8-bugbear] Document type-checker interaction (B010) (#28509)- [
flake8-comprehensions] Documentmap/generator exception behavior (C417) (#27794)- [
ruff] Mention related isort settings (RUF022) (#28719)Contributors
@qinpei-dev@sanjayrohith@ntBre@webdevsamran@zaniebot@ewdurbin@MichaReiser@spaceone@IbrahimKhan12@devtechedge@GruffElixir0.16.8
Released on 2026-09-16.
Bug fixes
... (truncated)
0be08a2
Bump version to 0.16.9 (#28882)b4920b7
Rename ruff_cli to ruff_command_line (#28881)47c751b
Update dependency astral-sh/uv to v0.12.18 (#28880)8c244e5
[flake8-comprehensions] Document map/generator
exception behavior (C417...5edf5a1
Use target form in rooster.version_files (#28876)915bb2b
[ty] Prefer existing @ paths over response files in Ruff and ty (#28877)4710e1a
ci(github): update version number in placeholder of issue template (#28871)eedfc62
[ty] Propagate outer type context through cast calls (#28855)ceaa6a0
[ty] Contain rendered code within Markdown fences (#28869)dba0f30
authorize ruff-pre-commit dispatch via OIDC (#28867)Sourced from ruff's releases.
0.16.9
Release Notes
Released on 2026-09-24.
Preview features
- [
ruff] Avoid false positives for overloaded division (RUF069) (#28309)Bug fixes
- [
flake8-bugbear] Avoid false positives for calls with keyword arguments (B009,B010,B043) (#28776)- [
flake8-tidy-imports] Allow lazy imports to be used in deferred annotations (TID255) (#28767)Rule changes
- Update LibCST-based fixes for Python 3.15 (#28616)
- [
flake8-pyi] Mention stubs in the diagnostic message (PYI002) (#28542)Documentation
- Fix horizontal overflow on the rules documentation page (#28699)
- Update rules table with category information (#28651)
- [
flake8-annotations] Clarify thatANN401checks return types in addition to arguments (#28334)- [
flake8-bugbear] Document type-checker interaction (B010) (#28509)- [
flake8-comprehensions] Documentmap/generator exception behavior (C417) (#27794)- [
ruff] Mention related isort settings (RUF022) (#28719)Contributors