mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-07 22:10:10 +08:00
Bump mock to 5.2.* (#13581)
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
version = "5.1.*"
|
||||
version = "5.2.*"
|
||||
upstream_repository = "https://github.com/testing-cabal/mock"
|
||||
|
||||
@@ -1,2 +1,7 @@
|
||||
from asyncio import iscoroutinefunction as iscoroutinefunction
|
||||
import sys
|
||||
from unittest import IsolatedAsyncioTestCase as IsolatedAsyncioTestCase
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
from inspect import iscoroutinefunction as iscoroutinefunction
|
||||
else:
|
||||
from asyncio import iscoroutinefunction as iscoroutinefunction
|
||||
|
||||
@@ -117,7 +117,7 @@ class NonCallableMock(Base, Any):
|
||||
**kwargs: Any,
|
||||
) -> None: ...
|
||||
def __getattr__(self, name: str) -> Any: ...
|
||||
def _calls_repr(self, prefix: str = "Calls") -> str: ...
|
||||
def _calls_repr(self) -> str: ...
|
||||
def assert_called_with(_mock_self, *args: Any, **kwargs: Any) -> None: ...
|
||||
def assert_not_called(_mock_self) -> None: ...
|
||||
def assert_called_once_with(_mock_self, *args: Any, **kwargs: Any) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user