Skip to content

Commit

Permalink
Merge pull request #302 from Niccolum/main
Browse files Browse the repository at this point in the history
add 3.7 support for async_stub
  • Loading branch information
nicoddemus committed Jul 5, 2022
2 parents 7047e54 + 45bee45 commit 35e2dca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pytest_mock/plugin.py
Expand Up @@ -173,7 +173,7 @@ def async_stub(self, name: Optional[str] = None) -> AsyncMockType:
:return: Stub object.
"""
return cast(
unittest.mock.AsyncMock,
AsyncMockType,
self.mock_module.AsyncMock(spec=lambda *args, **kwargs: None, name=name),
)

Expand Down

0 comments on commit 35e2dca

Please sign in to comment.