Skip to content

Commit 73c4105

Browse files
committed
reports: improve a type annotation
1 parent 7d306e9 commit 73c4105

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/_pytest/reports.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,9 @@ def __init__(
358358
self,
359359
nodeid: str,
360360
outcome: "Literal['passed', 'failed', 'skipped']",
361-
longrepr,
361+
longrepr: Union[
362+
None, ExceptionInfo[BaseException], Tuple[str, int, str], str, TerminalRepr
363+
],
362364
result: Optional[List[Union[Item, Collector]]],
363365
sections: Iterable[Tuple[str, str]] = (),
364366
**extra,

0 commit comments

Comments
 (0)