Skip to content

Commit e6077d8

Browse files
committed
release.py: fix mypy errors
1 parent ef24cbd commit e6077d8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/release.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import subprocess
66
import sys
77
from pathlib import Path
8-
from typing import List
8+
from typing import Iterable
99

1010

1111
class UsageError(Exception):
@@ -19,8 +19,8 @@ def parse_version():
1919
return m.groups()[0]
2020

2121

22-
def bump_version(path: Path, prefixes: List[str], current_version: str, new_version: str):
23-
prefixes = tuple(prefixes)
22+
def bump_version(path: Path, prefix_list: Iterable[str], current_version: str, new_version: str):
23+
prefixes = tuple(prefix_list)
2424
lines = []
2525
for line in path.open():
2626
if line.startswith(prefixes):

0 commit comments

Comments
 (0)