Skip to content

Commit d4e3f3e

Browse files
authored
Merge pull request #208 from pytest-dev/graingert-patch-1
remove type annotations from docstrings
2 parents 252eba8 + e6cc1ec commit d4e3f3e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/pytest_mock/plugin.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,8 @@ def spy(self, obj: object, name: str) -> unittest.mock.MagicMock:
8888
Create a spy of method. It will run method normally, but it is now
8989
possible to use `mock` call features with it, like call count.
9090
91-
:param object obj: An object.
92-
:param unicode name: A method in object.
93-
:rtype: unittest.mock.MagicMock
91+
:param obj: An object.
92+
:param name: A method in object.
9493
:return: Spy object.
9594
"""
9695
method = getattr(obj, name)
@@ -149,7 +148,6 @@ def stub(self, name: Optional[str] = None) -> unittest.mock.MagicMock:
149148
callbacks in tests.
150149
151150
:param name: the constructed stub's name as used in repr
152-
:rtype: unittest.mock.MagicMock
153151
:return: Stub object.
154152
"""
155153
return cast(

0 commit comments

Comments
 (0)