From b493bcf4fa8cf243b18ed1b5dc56d7843b3feb18 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Mon, 31 Oct 2022 17:37:01 -0700 Subject: [PATCH] update type annotations --- jc/parsers/findmnt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jc/parsers/findmnt.py b/jc/parsers/findmnt.py index 46ccde15..04030f8e 100644 --- a/jc/parsers/findmnt.py +++ b/jc/parsers/findmnt.py @@ -89,10 +89,11 @@ def _process(proc_data: List[JSONDictType]) -> List[JSONDictType]: return proc_data -def _replace(matchobj): +def _replace(matchobj: re.Match) -> str: if matchobj: matchlen = len(matchobj.group(1)) return ' ' * matchlen + '/' + return '' def parse(