1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

update type annotations

This commit is contained in:
Kelly Brazil
2022-10-31 17:37:01 -07:00
parent f6ee30be20
commit b493bcf4fa

View File

@ -89,10 +89,11 @@ def _process(proc_data: List[JSONDictType]) -> List[JSONDictType]:
return proc_data return proc_data
def _replace(matchobj): def _replace(matchobj: re.Match) -> str:
if matchobj: if matchobj:
matchlen = len(matchobj.group(1)) matchlen = len(matchobj.group(1))
return ' ' * matchlen + '/' return ' ' * matchlen + '/'
return ''
def parse( def parse(