blob: 2c6d4a3c4a671a661e6040d8da1dba23c4508f34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
"""versioninfo"""
# pylint: disable=too-few-public-methods
class VersionInfo:
"""Version info dataclass"""
major: int
minor: int
build: int
level: str
serial: int
# pylint: disable=too-many-arguments
def __init__(self, major: int, minor: int, build: int, level: str, serial: int):
self.major: int = major
self.minor: int = minor
self.build: int = build
self.level: str = level
self.serial: int = serial
def __str__(self):
return '{major}.{minor}.{build}{level}{serial}'.format(**self.__dict__)
VERSION = VersionInfo(1, 0, 0, 'a', 0)
|