Skip to content

Commit 45bee45

Browse files
committed
add 3.7 support
1 parent dabbed8 commit 45bee45

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)