Squash: Applied review comments
This commit is contained in:
parent
869c089887
commit
b2582b0314
|
@ -362,15 +362,12 @@ class Node(metaclass=NodeMeta):
|
|||
)
|
||||
|
||||
def repr_failure(
|
||||
self, excinfo, style=None
|
||||
self, excinfo: ExceptionInfo[Union[Failed, FixtureLookupError]], style=None
|
||||
) -> Union[str, ReprExceptionInfo, ExceptionChainRepr, FixtureLookupErrorRepr]:
|
||||
"""
|
||||
Return a string representation of a collection failure.
|
||||
Return a representation of a collection or test failure.
|
||||
|
||||
:param excinfo: Exception information for the failure as a tuple
|
||||
(type, value, traceback), see sys.exc_info().
|
||||
:param style: Style of the representation ('long', 'short', 'auto',
|
||||
None).
|
||||
:param excinfo: Exception information for the failure.
|
||||
"""
|
||||
return self._repr_failure_py(excinfo, style)
|
||||
|
||||
|
@ -410,12 +407,13 @@ class Collector(Node):
|
|||
"""
|
||||
raise NotImplementedError("abstract")
|
||||
|
||||
def repr_failure(self, excinfo):
|
||||
def repr_failure(
|
||||
self, excinfo: ExceptionInfo[Union[Failed, FixtureLookupError]]
|
||||
) -> Union[str, ReprExceptionInfo, ExceptionChainRepr, FixtureLookupErrorRepr]:
|
||||
"""
|
||||
Return a string representation of a collection failure.
|
||||
Return a representation of a collection or test failure.
|
||||
|
||||
:param excinfo: Exception information for the failure as a tuple
|
||||
(type, value, traceback), see sys.exc_info().
|
||||
:param excinfo: Exception information for the failure.
|
||||
"""
|
||||
if excinfo.errisinstance(self.CollectError) and not self.config.getoption(
|
||||
"fulltrace", False
|
||||
|
|
Loading…
Reference in New Issue