NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #2311 most downloaded on PyPI
Typing stubs for mock
Last release 4 months ago
18 May 2026
Release timing varies
gaps range from 1 weeks to 10 months
Most releases are documented
notes for 38 of 47 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
47 releases · first in 2021
One column per quarter.
Upgrade black to 26.5.0
Upgrade black to 26.5.0 (#15801)
Drop 3.9 support for third-party packages
Use dashes instead of underscores for METADATA.toml field names
Use dashes instead of underscores for METADATA.toml field names (#15614)
Update mypy to 1.20.0
Update mypy to 1.20.0 (#15588)
[mock] Sync _ANY type with unittest.mock
[mock] Sync _ANY type with unittest.mock (#14772)
Mark stub-only private symbols as @type_check_only in third-party stubs
Mark stub-only private symbols as @type_check_only in third-party stubs (#14545)
Replace Incomplete | None = None in third party stubs
Replace Incomplete | None = None in third party stubs (#14063)
Bump mock to 5.2.*
Bump mock to 5.2.* (#13581)
Bump pyright to v1.1.360
Bump pyright to v1.1.360 (#11810)
Use PEP 570 syntax in third party stubs
Use PEP 570 syntax in third party stubs (#11554)
Update typing_extensions imports in third-party stubs
Third-party stubs: remove unused type: ignores
Third-party stubs: remove unused type: ignores (#11063)
And harmonise some annotations between the stdlib unittest.mock module and the third-party mock backport package.
Update unittest.mock to 3.12 (#10650)
And harmonise some annotations between the stdlib unittest.mock module and the third-party mock backport package.
Co-authored-by: Alex Waygood Alex.Waygood@Gmail.com
Add an upstream_repository field to METADATA.toml
Add an upstream_repository field to METADATA.toml (#10487)
Closes: #10478
Add a more precise signature for AsyncMock.reset_mock()
[mock] take an iterable of calls for assert_has_awaits
Add defaults for third-party stubs M-O
Add defaults for third-party stubs M-O (#9956)
Stubtest settings: change ignore_missing_stub default to false
Stubtest settings: change ignore_missing_stub default to false (#9779)
If you're reading about this commit from an autogenerated changelog entry, this should have no user-visible impact on how the stubs are interpreted by a type checker; it's just an internal change to how typeshed's tests work.
Use typing_extensions.Self instead of _typeshed.Self
Use typing_extensions.Self instead of _typeshed.Self (#9702)
Add comments when subclassing Any
Add comments when subclassing Any (#9732)
Replace Any with Incomplete in many places
Replace Any with Incomplete in many places (#9565)
Replace Any with Incomplete in many places
Replace Any with Incomplete in many places (#9558)
Bump mock to 5.0.*
Bump mock to 5.0.* (#9423)
Remove mock from pyright's exclude
Remove mock from pyright's exclude (#8942)
Mark mock as completed (#8919) Co-authored-by: Jelle Zijlstra
Mark mock as completed (#8919)
Co-authored-by: Jelle Zijlstra jelle.zijlstra@gmail.com
Always use TypeAlias when assigning to Any
Always use TypeAlias when assigning to Any (#8021)
mock: Fix unconstrained TypeVar
mock: Fix unconstrained TypeVar (#7945)
The first overload covers the case where new is not given.
Part of #7928
Third-party stubs: Improve several __exit__ methods
Third-party stubs: Improve several __exit__ methods (#7575)
Add mypy error codes to type: ignores, remove unused ignores
Add mypy error codes to type: ignores, remove unused ignores (#7504)
Co-authored-by: Jelle Zijlstra jelle.zijlstra@gmail.com
Correct several positional-only differences in third-party stubs
Correct several positional-only differences in third-party stubs (#7352)
Improve __enter__ & constructor methods
Improve __enter__ & constructor methods (#7114)
Reduce use of Any in equality methods
Reduce use of Any in equality methods (#7081)
Co-authored-by: Akuli akuviljanen17@gmail.com
Use lowercase type everywhere
Use lowercase type everywhere (#6853)
Update pyright
Update pyright (#6840)
Nothing published for this version
Fixes for third-party mock package
Fixes for third-party mock package (#6685)
Removed a few unused private classes and methods. They can be re-added if a user reports them missing.
Add mypy error codes to '# type: ignore' comments
Add mypy error codes to '# type: ignore' comments (#6379)
Use lowercase tuple where possible
Use lowercase tuple where possible (#6170)
Add star to all non-0.1 versions
Add star to all non-0.1 versions (#6146)
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →