|
1 | 1 | # Stubs for unittest
|
2 | 2 |
|
3 | 3 | from typing import (
|
4 |
| - Any, Callable, ContextManager, Dict, FrozenSet, Generic, Iterable, Iterator, |
5 |
| - List, NoReturn, Optional, overload, Pattern, Sequence, Set, TextIO, Tuple, |
6 |
| - Type, TypeVar, Union |
| 4 | + Any, Callable, Container, ContextManager, Dict, FrozenSet, Generic, Iterable, |
| 5 | + Iterator, List, NoReturn, Optional, overload, Pattern, Sequence, Set, TextIO, |
| 6 | + Tuple, Type, TypeVar, Union |
7 | 7 | )
|
8 | 8 | import logging
|
9 | 9 | import sys
|
@@ -50,9 +50,9 @@ class TestCase:
|
50 | 50 | msg: Any = ...) -> None: ...
|
51 | 51 | def assertIsNone(self, expr: Any, msg: Any = ...) -> None: ...
|
52 | 52 | def assertIsNotNone(self, expr: Any, msg: Any = ...) -> None: ...
|
53 |
| - def assertIn(self, first: _T, second: Iterable[_T], |
| 53 | + def assertIn(self, member: Any, container: Container[Any], |
54 | 54 | msg: Any = ...) -> None: ...
|
55 |
| - def assertNotIn(self, first: _T, second: Iterable[_T], |
| 55 | + def assertNotIn(self, member: Any, container: Container[Any], |
56 | 56 | msg: Any = ...) -> None: ...
|
57 | 57 | def assertIsInstance(self, obj: Any,
|
58 | 58 | cls: Union[type, Tuple[type, ...]],
|
|
0 commit comments