This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Description
Simplified case:
import unittest
class Simple(unittest.TestCase):
def test_success(self):
self.assertEqual(42, 42)
def test_exception(self):
with self.assertRaises(Exception) as em:
raise Exception
These have typeshed types:
def assertEqual(self, first: Any, second: Any, msg: Any = ...) -> None: ...
@overload
def assertRaises(self,
exception: Union[Type[_E], Tuple[Type[_E], ...]],
msg: Any = ...) -> _AssertRaisesContext[_E]: ...
But in VSC you see:

The parameter types aren't shown for assertEqual, and there are no type hints for em in test_exception (not shown in the screenshot).