Skip to content

Commit

Permalink
cleanup: pacify ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
zachlewis committed Sep 18, 2024
1 parent 8f9b3ee commit 8e57910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cibuildwheel/oci_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ def _check_engine_version(engine: OCIContainerEngineConfig) -> None:
version_string = call(engine.name, "version", "-f", "{{json .}}", capture_stdout=True)
version_info = json.loads(version_string.strip())

def version_from_string(str: ver):
return Version(ver.replace("-", "+"))
def version_from_string(version) -> Version:
return Version(version.replace("-", "+"))

if engine.name == "docker":
# --platform support was introduced in 1.32 as experimental
Expand Down

0 comments on commit 8e57910

Please sign in to comment.