From e6cc1eca07b9133627da6781833429bdaa76364f Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Sat, 29 Aug 2020 12:14:49 +0100 Subject: [PATCH] remove type annotations from docstrings --- src/pytest_mock/plugin.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pytest_mock/plugin.py b/src/pytest_mock/plugin.py index 1760949..1b02148 100644 --- a/src/pytest_mock/plugin.py +++ b/src/pytest_mock/plugin.py @@ -86,9 +86,8 @@ def spy(self, obj: object, name: str) -> unittest.mock.MagicMock: Create a spy of method. It will run method normally, but it is now possible to use `mock` call features with it, like call count. - :param object obj: An object. - :param unicode name: A method in object. - :rtype: unittest.mock.MagicMock + :param obj: An object. + :param name: A method in object. :return: Spy object. """ method = getattr(obj, name) @@ -147,7 +146,6 @@ def stub(self, name: Optional[str] = None) -> unittest.mock.MagicMock: callbacks in tests. :param name: the constructed stub's name as used in repr - :rtype: unittest.mock.MagicMock :return: Stub object. """ return cast(