Update src/_pytest/terminal.py

Add type annotation

Co-authored-by: Ran Benita <ran@unusedvar.com>
This commit is contained in:
Harshna 2021-10-27 19:19:41 +01:00 committed by GitHub
parent 028c7c9edb
commit 735d193d14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)]