1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-13 01:20:24 +02:00

python 3.6 compatibility: remove re.Match type annotation

This commit is contained in:
Kelly Brazil
2022-12-23 09:17:42 -08:00
parent 33c40874fa
commit 55480c059a

View File

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