From 73c410523097a699559ce5ae12b9caf9c50972fc Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Wed, 30 Dec 2020 14:44:43 +0200 Subject: [PATCH] reports: improve a type annotation --- src/_pytest/reports.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/_pytest/reports.py b/src/_pytest/reports.py index c78d54239..d2d7115b2 100644 --- a/src/_pytest/reports.py +++ b/src/_pytest/reports.py @@ -358,7 +358,9 @@ class CollectReport(BaseReport): self, nodeid: str, outcome: "Literal['passed', 'failed', 'skipped']", - longrepr, + longrepr: Union[ + None, ExceptionInfo[BaseException], Tuple[str, int, str], str, TerminalRepr + ], result: Optional[List[Union[Item, Collector]]], sections: Iterable[Tuple[str, str]] = (), **extra,