From b2f659780ab753516e7b502a57eb4f8cb080321b Mon Sep 17 00:00:00 2001 From: jakkdl Date: Fri, 1 Dec 2023 18:28:12 +0100 Subject: [PATCH] type->Type --- src/_pytest/python_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_pytest/python_api.py b/src/_pytest/python_api.py index 82fde59de..608b0c0b2 100644 --- a/src/_pytest/python_api.py +++ b/src/_pytest/python_api.py @@ -794,7 +794,7 @@ E2 = TypeVar("E2", bound=BaseException) class Matcher(Generic[E]): def __init__( self, - exception_type: Optional[type[E]] = None, + exception_type: Optional[Type[E]] = None, match: Optional[Union[str, Pattern[str]]] = None, check: Optional[Callable[[E], bool]] = None, ):