Squash: Resolved 2nd round of review comments

This commit is contained in:
Andreas Maier 2020-04-12 13:12:33 +02:00
parent b2582b0314
commit c9386ada29
1 changed files with 3 additions and 5 deletions

View File

@ -362,7 +362,7 @@ class Node(metaclass=NodeMeta):
) )
def repr_failure( def repr_failure(
self, excinfo: ExceptionInfo[Union[Failed, FixtureLookupError]], style=None self, excinfo, style=None
) -> Union[str, ReprExceptionInfo, ExceptionChainRepr, FixtureLookupErrorRepr]: ) -> Union[str, ReprExceptionInfo, ExceptionChainRepr, FixtureLookupErrorRepr]:
""" """
Return a representation of a collection or test failure. Return a representation of a collection or test failure.
@ -407,11 +407,9 @@ class Collector(Node):
""" """
raise NotImplementedError("abstract") raise NotImplementedError("abstract")
def repr_failure( def repr_failure(self, excinfo):
self, excinfo: ExceptionInfo[Union[Failed, FixtureLookupError]]
) -> Union[str, ReprExceptionInfo, ExceptionChainRepr, FixtureLookupErrorRepr]:
""" """
Return a representation of a collection or test failure. Return a representation of a collection failure.
:param excinfo: Exception information for the failure. :param excinfo: Exception information for the failure.
""" """