From 735d193d14dad6f1f9c0ff53de8e2c0da8c0fef2 Mon Sep 17 00:00:00 2001 From: Harshna <43389959+hp310780@users.noreply.github.com> Date: Wed, 27 Oct 2021 19:19:41 +0100 Subject: [PATCH] Update src/_pytest/terminal.py Add type annotation Co-authored-by: Ran Benita --- src/_pytest/terminal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_pytest/terminal.py b/src/_pytest/terminal.py index 3e9acb1b4..1eeabd1ad 100644 --- a/src/_pytest/terminal.py +++ b/src/_pytest/terminal.py @@ -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)]