Skip to content

Commit

Permalink
add 3.7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Niccolum committed Jul 4, 2022
1 parent dabbed8 commit 45bee45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pytest_mock/plugin.py
Original file line number Diff line number Diff line change
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 45bee45

Please sign in to comment.