Skip to content

Commit 0904505

Browse files
Last ruff fixup
1 parent 2955df0 commit 0904505

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/_pytest/config/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
from typing import final
3232
from typing import IO
3333
from typing import TextIO
34-
from typing import Type
3534
from typing import TYPE_CHECKING
3635
import warnings
3736

src/_pytest/python_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from collections.abc import Mapping
66
from collections.abc import Sequence
77
from collections.abc import Sized
8+
from contextlib import AbstractContextManager
89
from decimal import Decimal
910
import math
1011
from numbers import Complex
@@ -15,7 +16,6 @@
1516
from typing import Any
1617
from typing import Callable
1718
from typing import cast
18-
from typing import ContextManager
1919
from typing import final
2020
from typing import overload
2121
from 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], ...],

0 commit comments

Comments
 (0)