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 31
31
from typing import final
32
32
from typing import IO
33
33
from typing import TextIO
34
- from typing import Type
35
34
from typing import TYPE_CHECKING
36
35
import warnings
37
36
Original file line number Diff line number Diff line change 5
5
from collections .abc import Mapping
6
6
from collections .abc import Sequence
7
7
from collections .abc import Sized
8
+ from contextlib import AbstractContextManager
8
9
from decimal import Decimal
9
10
import math
10
11
from numbers import Complex
15
16
from typing import Any
16
17
from typing import Callable
17
18
from typing import cast
18
- from typing import ContextManager
19
19
from typing import final
20
20
from typing import overload
21
21
from typing import TYPE_CHECKING
@@ -978,7 +978,7 @@ def raises(
978
978
979
979
980
980
@final
981
- class RaisesContext (ContextManager [_pytest ._code .ExceptionInfo [E ]]):
981
+ class RaisesContext (AbstractContextManager [_pytest ._code .ExceptionInfo [E ]]):
982
982
def __init__ (
983
983
self ,
984
984
expected_exception : type [E ] | tuple [type [E ], ...],
You can’t perform that action at this time.
0 commit comments