reports: improve a type annotation

This commit is contained in:
Ran Benita 2020-12-30 14:44:43 +02:00
parent 7d306e9e86
commit 73c4105230
1 changed files with 3 additions and 1 deletions

View File

@ -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,