Skip to content

Commit e6cc1ec

Browse files
authored
remove type annotations from docstrings
1 parent 632af5e commit e6cc1ec

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
@@ -86,9 +86,8 @@ def spy(self, obj: object, name: str) -> unittest.mock.MagicMock:
8686
Create a spy of method. It will run method normally, but it is now
8787
possible to use `mock` call features with it, like call count.
8888
89-
:param object obj: An object.
90-
:param unicode name: A method in object.
91-
:rtype: unittest.mock.MagicMock
89+
:param obj: An object.
90+
:param name: A method in object.
9291
:return: Spy object.
9392
"""
9493
method = getattr(obj, name)
@@ -147,7 +146,6 @@ def stub(self, name: Optional[str] = None) -> unittest.mock.MagicMock:
147146
callbacks in tests.
148147
149148
:param name: the constructed stub's name as used in repr
150-
:rtype: unittest.mock.MagicMock
151149
:return: Stub object.
152150
"""
153151
return cast(

0 commit comments

Comments
 (0)