Skip to content

Commit 8a21b85

Browse files
authored
Bump mock to 5.2.* (#13581)
1 parent 58a4c08 commit 8a21b85

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

stubs/mock/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "5.1.*"
1+
version = "5.2.*"
22
upstream_repository = "https://github.com/testing-cabal/mock"

stubs/mock/mock/backports.pyi

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
from asyncio import iscoroutinefunction as iscoroutinefunction
1+
import sys
22
from unittest import IsolatedAsyncioTestCase as IsolatedAsyncioTestCase
3+
4+
if sys.version_info >= (3, 10):
5+
from inspect import iscoroutinefunction as iscoroutinefunction
6+
else:
7+
from asyncio import iscoroutinefunction as iscoroutinefunction

stubs/mock/mock/mock.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class NonCallableMock(Base, Any):
117117
**kwargs: Any,
118118
) -> None: ...
119119
def __getattr__(self, name: str) -> Any: ...
120-
def _calls_repr(self, prefix: str = "Calls") -> str: ...
120+
def _calls_repr(self) -> str: ...
121121
def assert_called_with(_mock_self, *args: Any, **kwargs: Any) -> None: ...
122122
def assert_not_called(_mock_self) -> None: ...
123123
def assert_called_once_with(_mock_self, *args: Any, **kwargs: Any) -> None: ...

0 commit comments

Comments
 (0)