Skip to content

Commit

Permalink
Merge pull request #208 from pytest-dev/graingert-patch-1
Browse files Browse the repository at this point in the history
remove type annotations from docstrings
  • Loading branch information
nicoddemus committed Dec 15, 2020
2 parents 252eba8 + e6cc1ec commit d4e3f3e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pytest_mock/plugin.py
Expand Up @@ -88,9 +88,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)
Expand Down Expand Up @@ -149,7 +148,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(
Expand Down

0 comments on commit d4e3f3e

Please sign in to comment.