Skip to content

fix type for TestCase.assertIn #2186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 4, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions stdlib/3/unittest/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Stubs for unittest

from typing import (
Any, Callable, ContextManager, Dict, FrozenSet, Generic, Iterable, Iterator,
List, NoReturn, Optional, overload, Pattern, Sequence, Set, TextIO, Tuple,
Type, TypeVar, Union
Any, Callable, Container, ContextManager, Dict, FrozenSet, Generic, Iterable,
Iterator, List, NoReturn, Optional, overload, Pattern, Sequence, Set, TextIO,
Tuple, Type, TypeVar, Union
)
import logging
import sys
Expand Down Expand Up @@ -50,9 +50,9 @@ class TestCase:
msg: Any = ...) -> None: ...
def assertIsNone(self, expr: Any, msg: Any = ...) -> None: ...
def assertIsNotNone(self, expr: Any, msg: Any = ...) -> None: ...
def assertIn(self, first: _T, second: Iterable[_T],
def assertIn(self, member: Any, container: Container[Any],
msg: Any = ...) -> None: ...
def assertNotIn(self, first: _T, second: Iterable[_T],
def assertNotIn(self, member: Any, container: Container[Any],
msg: Any = ...) -> None: ...
def assertIsInstance(self, obj: Any,
cls: Union[type, Tuple[type, ...]],
Expand Down