Update src/_pytest/terminal.py
Add type annotation Co-authored-by: Ran Benita <ran@unusedvar.com>
This commit is contained in:
parent
028c7c9edb
commit
735d193d14
|
@ -865,7 +865,7 @@ class TerminalReporter:
|
|||
def _locationline(
|
||||
self, nodeid: str, fspath: str, lineno: Optional[int], domain: str
|
||||
) -> str:
|
||||
def mkrel(nodeid) -> str:
|
||||
def mkrel(nodeid: str) -> str:
|
||||
line = self.config.cwd_relative_nodeid(nodeid)
|
||||
if domain and line.endswith(domain):
|
||||
line = line[: -len(domain)]
|
||||
|
|
Loading…
Reference in New Issue