Skip to content

Commit 35e2dca

Browse files
authored
Merge pull request #302 from Niccolum/main
add 3.7 support for async_stub
2 parents 7047e54 + 45bee45 commit 35e2dca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pytest_mock/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def async_stub(self, name: Optional[str] = None) -> AsyncMockType:
173173
:return: Stub object.
174174
"""
175175
return cast(
176-
unittest.mock.AsyncMock,
176+
AsyncMockType,
177177
self.mock_module.AsyncMock(spec=lambda *args, **kwargs: None, name=name),
178178
)
179179

0 commit comments

Comments
 (0)