mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-16 13:35:04 +08:00
86135edb6d
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 e6c467af82.