File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22from collections import OrderedDict
33from itertools import zip_longest
44from string import Template
5- from typing import List , Optional , Union
5+ from typing import List , Optional , Tuple , Union
66
77from packaging .version import Version
88
@@ -167,7 +167,9 @@ def update_version_in_files(
167167 file .write ("" .join (version_file ))
168168
169169
170- def _bump_with_regex (version_file_contents , current_version , new_version , regex ):
170+ def _bump_with_regex (
171+ version_file_contents : str , current_version : str , new_version : str , regex : str
172+ ) -> Tuple [bool , str ]:
171173 current_version_found = False
172174 # Bumping versions that change the string length move the offset on the file contents as finditer keeps a
173175 # reference to the initial string that was used and calling search many times would lead in infinite loops
You can’t perform that action at this time.
0 commit comments