assert_has_awaits takes Iterable[_Call] instead of _CallList (#5052)

This commit is contained in:
JonathanMeans authored and GitHub committed 2021-02-22 22:55:51 +01:00
1 parent 97f9acf4ee
commit f4c35f1059
1 file changed
+2 -2
+2 -2
View File
@@ -1,5 +1,5 @@
import sys
from typing import Any, Callable, Generic, List, Mapping, Optional, Sequence, Tuple, Type, TypeVar, Union, overload
from typing import Any, Callable, Generic, Iterable, List, Mapping, Optional, Sequence, Tuple, Type, TypeVar, Union, overload
_F = TypeVar("_F", bound=Callable[..., Any])
_T = TypeVar("_T")
@@ -342,7 +342,7 @@ if sys.version_info >= (3, 8):
def assert_awaited_with(self, *args: Any, **kwargs: Any) -> None: ...
def assert_awaited_once_with(self, *args: Any, **kwargs: Any) -> None: ...
def assert_any_await(self, *args: Any, **kwargs: Any) -> None: ...
def assert_has_awaits(self, calls: _CallList, any_order: bool = ...) -> None: ...
def assert_has_awaits(self, calls: Iterable[_Call], any_order: bool = ...) -> None: ...
def assert_not_awaited(self) -> None: ...
def reset_mock(self, *args: Any, **kwargs: Any) -> None: ...
await_count: int