Back to bricks list
Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version

Version

Object that represent a version like : 1.2.0

:raises VersionInvalidException: [description] :raises VersionInvalidException: [description] :raises VersionInvalidException: [description]

Attributes
major: intminor: intpatch: intsub_patch: int
Functions
__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 : int
HAS_SUB_PATCH

return True if the version has a sub_patch

Return type : bool