File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 3131from typing import final
3232from typing import IO
3333from typing import TextIO
34- from typing import Type
3534from typing import TYPE_CHECKING
3635import warnings
3736
Original file line number Diff line number Diff line change 55from collections .abc import Mapping
66from collections .abc import Sequence
77from collections .abc import Sized
8+ from contextlib import AbstractContextManager
89from decimal import Decimal
910import math
1011from numbers import Complex
1516from typing import Any
1617from typing import Callable
1718from typing import cast
18- from typing import ContextManager
1919from typing import final
2020from typing import overload
2121from typing import TYPE_CHECKING
@@ -978,7 +978,7 @@ def raises(
978978
979979
980980@final
981- class RaisesContext (ContextManager [_pytest ._code .ExceptionInfo [E ]]):
981+ class RaisesContext (AbstractContextManager [_pytest ._code .ExceptionInfo [E ]]):
982982 def __init__ (
983983 self ,
984984 expected_exception : type [E ] | tuple [type [E ], ...],
You can’t perform that action at this time.
0 commit comments