diff --git a/CHANGELOG.rst b/CHANGELOG.rst index f7f47fd..aa3f710 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,3 +1,12 @@ +3.5.2 (UNRELEASED) +------------------ + +* Correct type annotations for ``mocker.patch.object`` to also include the string form. + Thanks `@plannigan`_ for the PR (`#235`_). + +.. _@plannigan: https://github.com/plannigan +.. _#235: https://github.com/pytest-dev/pytest-mock/pull/235 + 3.5.1 (2021-01-10) ------------------ diff --git a/src/pytest_mock/plugin.py b/src/pytest_mock/plugin.py index ddcf0b5..15147bc 100644 --- a/src/pytest_mock/plugin.py +++ b/src/pytest_mock/plugin.py @@ -267,7 +267,7 @@ def multiple( def dict( self, - in_dict: Mapping[Any, Any], + in_dict: Union[Mapping[Any, Any], str], values: Union[Mapping[Any, Any], Iterable[Tuple[Any, Any]]] = (), clear: bool = False, **kwargs: Any