gui.versions.VersionStatus

gui.versions.VersionStatus(installed, pinned, mismatch)

The running version against the pinned one.

Attributes

Name Type Description
installed str The version of spotregen that runs.
pinned str | None The version uv.lock pins, or None if the repository pins none.
mismatch bool True when both are known and differ.

Examples

from spotregen.gui.versions import VersionStatus

print(VersionStatus("0.8.0", "0.7.0", True).mismatch)
True