From: Jörg Behrmann Date: Fri, 16 May 2025 09:54:16 +0000 (+0200) Subject: version: add __repr__ to GenericVersion X-Git-Tag: v26~226^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90ba99dde1ee453f175561b82efa8a0a5e2ef1d1;p=thirdparty%2Fmkosi.git version: add __repr__ to GenericVersion --- diff --git a/mkosi/versioncomp.py b/mkosi/versioncomp.py index a6c45865a..a0662e5e4 100644 --- a/mkosi/versioncomp.py +++ b/mkosi/versioncomp.py @@ -158,3 +158,6 @@ class GenericVersion: def __str__(self) -> str: return self._version + + def __repr__(self) -> str: + return f"GenericVersion('{self._version}')"