Version
Object that represent a version like : 1.2.0
:raises VersionInvalidError: [description] :raises VersionInvalidError: [description] :raises VersionInvalidError: [description]
Attributes
major: intminor: intpatch: intsub_patch: int | NoneFunctions
__init__
Initialize self. See help(type(self)) for accurate signature.
version :
str get_sub_patch_as_number
return the sub_patch as a number. In there is no sub patch, return infinity so the beta version are always before real version
Return type :
float has_sub_patch
return True if the version has a sub_patch
Return type :
bool to_string
return the version as a string
Return type :
str