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

remove re type annotations for python 3.6 compatibility

This commit is contained in:
Kelly Brazil
2022-12-23 09:23:51 -08:00
parent 6fbf9458d1
commit edcca4fb96
2 changed files with 1 additions and 2 deletions

View File

@ -140,7 +140,6 @@ def _process(proc_data: List[JSONDictType]) -> List[JSONDictType]:
return proc_data
def _replace(matchobj):
if matchobj:
matchlen = len(matchobj.group(1))

View File

@ -326,7 +326,7 @@ def _process(proc_data: List[JSONDictType]) -> List[JSONDictType]:
return proc_data
def _bundle_match(pattern_list: List[re.Pattern], string: str) -> Optional[re.Match]:
def _bundle_match(pattern_list, string):
"""Returns a match object if a string matches one of a list of patterns.
If no match is found, returns None"""
for pattern in pattern_list: