From e74a6da6991d673b8c59329fb7ca9da638cc2b43 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Thu, 19 Oct 2023 18:22:56 +0100 Subject: [PATCH] use old style type annotation --- src/_pytest/outcomes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_pytest/outcomes.py b/src/_pytest/outcomes.py index ce7db08a4..93067b6c2 100644 --- a/src/_pytest/outcomes.py +++ b/src/_pytest/outcomes.py @@ -252,7 +252,7 @@ def importorskip( modname: str, minversion: Optional[str] = None, reason: Optional[str] = None, - exc: type[ImportError] = ImportError, + exc: Type[ImportError] = ImportError, ) -> Any: """Import and return the requested module ``modname``, or skip the current test if the module cannot be imported.