Skip to content

Commit e9fecf2

Browse files
committed
fix: accept optional version spec
The function already treats a missing version as valid input; updating the signature prevents misleading type assumptions and makes intent explicit.
1 parent e2e019d commit e9fecf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

upgrade/scripts/upgrade_python_package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def install_wheel(
309309
return resp
310310

311311

312-
def _normalize_version_spec(version: str) -> str:
312+
def _normalize_version_spec(version: str | None) -> str | None:
313313
if version is None:
314314
return version
315315
version = version.strip()

0 commit comments

Comments
 (0)