Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f4c35f1

Browse files
assert_has_awaits takes Iterable[_Call] instead of _CallList (#5052)
1 parent 97f9acf commit f4c35f1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

stdlib/unittest/mock.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import sys
2-
from typing import Any, Callable, Generic, List, Mapping, Optional, Sequence, Tuple, Type, TypeVar, Union, overload
2+
from typing import Any, Callable, Generic, Iterable, List, Mapping, Optional, Sequence, Tuple, Type, TypeVar, Union, overload
33

44
_F = TypeVar("_F", bound=Callable[..., Any])
55
_T = TypeVar("_T")
@@ -342,7 +342,7 @@ if sys.version_info >= (3, 8):
342342
def assert_awaited_with(self, *args: Any, **kwargs: Any) -> None: ...
343343
def assert_awaited_once_with(self, *args: Any, **kwargs: Any) -> None: ...
344344
def assert_any_await(self, *args: Any, **kwargs: Any) -> None: ...
345-
def assert_has_awaits(self, calls: _CallList, any_order: bool = ...) -> None: ...
345+
def assert_has_awaits(self, calls: Iterable[_Call], any_order: bool = ...) -> None: ...
346346
def assert_not_awaited(self) -> None: ...
347347
def reset_mock(self, *args: Any, **kwargs: Any) -> None: ...
348348
await_count: int

0 commit comments

Comments
 (0)