File tree Expand file tree Collapse file tree 7 files changed +7
-8
lines changed Expand file tree Collapse file tree 7 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 7
7
from collections .abc import Iterable
8
8
from collections .abc import Mapping
9
9
from collections .abc import Sequence
10
+ from collections .abc import Set as AbstractSet
10
11
import os
11
12
import pprint
12
- from typing import AbstractSet
13
13
from typing import Any
14
14
from typing import Callable
15
15
from typing import Literal
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 11
11
from collections .abc import Mapping
12
12
from collections .abc import MutableMapping
13
13
from collections .abc import Sequence
14
+ from collections .abc import Set as AbstractSet
14
15
import dataclasses
15
16
import functools
16
17
import inspect
17
18
import os
18
19
from pathlib import Path
19
20
import sys
20
21
import types
21
- from typing import AbstractSet
22
22
from typing import Any
23
23
from typing import Callable
24
24
from typing import cast
Original file line number Diff line number Diff line change 5
5
6
6
from collections .abc import Generator
7
7
from collections .abc import Mapping
8
+ from collections .abc import Set as AbstractSet
8
9
from contextlib import contextmanager
9
10
from contextlib import nullcontext
10
11
from datetime import datetime
18
19
from pathlib import Path
19
20
import re
20
21
from types import TracebackType
21
- from typing import AbstractSet
22
22
from typing import final
23
23
from typing import Generic
24
24
from typing import Literal
Original file line number Diff line number Diff line change 6
6
from collections .abc import Iterable
7
7
from collections .abc import Iterator
8
8
from collections .abc import Sequence
9
+ from collections .abc import Set as AbstractSet
9
10
import dataclasses
10
11
import fnmatch
11
12
import functools
14
15
import os
15
16
from pathlib import Path
16
17
import sys
17
- from typing import AbstractSet
18
18
from typing import Callable
19
19
from typing import final
20
20
from typing import Literal
Original file line number Diff line number Diff line change 5
5
import collections
6
6
from collections .abc import Collection
7
7
from collections .abc import Iterable
8
+ from collections .abc import Set as AbstractSet
8
9
import dataclasses
9
- from typing import AbstractSet
10
10
from typing import Optional
11
11
from typing import TYPE_CHECKING
12
12
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