Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove type annotations from docstrings #208

Merged
merged 1 commit into from Dec 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/pytest_mock/plugin.py
Expand Up @@ -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.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this either?

image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not hehehe

:param name: A method in object.
:return: Spy object.
"""
method = getattr(obj, name)
Expand Down Expand Up @@ -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(
Expand Down