File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2
2
from collections import OrderedDict
3
3
from itertools import zip_longest
4
4
from string import Template
5
- from typing import List , Optional , Union
5
+ from typing import List , Optional , Tuple , Union
6
6
7
7
from packaging .version import Version
8
8
@@ -167,7 +167,9 @@ def update_version_in_files(
167
167
file .write ("" .join (version_file ))
168
168
169
169
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 ]:
171
173
current_version_found = False
172
174
# Bumping versions that change the string length move the offset on the file contents as finditer keeps a
173
175
# 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