From c9386ada29042dec120370c10437c4369f820554 Mon Sep 17 00:00:00 2001 From: Andreas Maier Date: Sun, 12 Apr 2020 13:12:33 +0200 Subject: [PATCH] Squash: Resolved 2nd round of review comments --- src/_pytest/nodes.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/_pytest/nodes.py b/src/_pytest/nodes.py index 0b6e5ec90..6761aa79c 100644 --- a/src/_pytest/nodes.py +++ b/src/_pytest/nodes.py @@ -362,7 +362,7 @@ class Node(metaclass=NodeMeta): ) def repr_failure( - self, excinfo: ExceptionInfo[Union[Failed, FixtureLookupError]], style=None + self, excinfo, style=None ) -> Union[str, ReprExceptionInfo, ExceptionChainRepr, FixtureLookupErrorRepr]: """ Return a representation of a collection or test failure. @@ -407,11 +407,9 @@ class Collector(Node): """ raise NotImplementedError("abstract") - def repr_failure( - self, excinfo: ExceptionInfo[Union[Failed, FixtureLookupError]] - ) -> Union[str, ReprExceptionInfo, ExceptionChainRepr, FixtureLookupErrorRepr]: + def repr_failure(self, excinfo): """ - Return a representation of a collection or test failure. + Return a representation of a collection failure. :param excinfo: Exception information for the failure. """