Commit 86135ed
authored
Fix signature of assertRaisesRegexp in unittest (#3434)
Fixes mypy false positive `"None" has noattribute "__enter__"` here:
```
class Foo(unittest.TestCase):
def test_foo(self) -> None:
with self.assertRaisesRegexp(Exception, "foo"):
1 / 0
```
Fixes regression introduced in e6c467a.1 parent 4b8c6bb commit 86135ed
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| |||
0 commit comments