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 77from collections .abc import Iterable
88from collections .abc import Mapping
99from collections .abc import Sequence
10+ from collections .abc import Set as AbstractSet
1011import os
1112import pprint
12- from typing import AbstractSet
1313from typing import Any
1414from typing import Callable
1515from typing import Literal
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 1111from collections .abc import Mapping
1212from collections .abc import MutableMapping
1313from collections .abc import Sequence
14+ from collections .abc import Set as AbstractSet
1415import dataclasses
1516import functools
1617import inspect
1718import os
1819from pathlib import Path
1920import sys
2021import types
21- from typing import AbstractSet
2222from typing import Any
2323from typing import Callable
2424from typing import cast
Original file line number Diff line number Diff line change 55
66from collections .abc import Generator
77from collections .abc import Mapping
8+ from collections .abc import Set as AbstractSet
89from contextlib import contextmanager
910from contextlib import nullcontext
1011from datetime import datetime
1819from pathlib import Path
1920import re
2021from types import TracebackType
21- from typing import AbstractSet
2222from typing import final
2323from typing import Generic
2424from typing import Literal
Original file line number Diff line number Diff line change 66from collections .abc import Iterable
77from collections .abc import Iterator
88from collections .abc import Sequence
9+ from collections .abc import Set as AbstractSet
910import dataclasses
1011import fnmatch
1112import functools
1415import os
1516from pathlib import Path
1617import sys
17- from typing import AbstractSet
1818from typing import Callable
1919from typing import final
2020from typing import Literal
Original file line number Diff line number Diff line change 55import collections
66from collections .abc import Collection
77from collections .abc import Iterable
8+ from collections .abc import Set as AbstractSet
89import dataclasses
9- from typing import AbstractSet
1010from typing import Optional
1111from typing import TYPE_CHECKING
1212
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