Skip to content

Latest commit

 

History

History
2 lines (2 loc) · 193 Bytes

10660.bugfix.rst

File metadata and controls

2 lines (2 loc) · 193 Bytes

Fix :pypytest.raises to return a 'ContextManager' so that type-checkers could narrow pytest.raises(...) if ... else nullcontext() down to 'ContextManager' rather than 'object'.