aboutsummaryrefslogtreecommitdiff
path: root/configlib/version.py
diff options
context:
space:
mode:
authorromangraef <romangraef@loves.dicksinhisan.us>2018-07-11 15:35:46 +0200
committerromangraef <romangraef@loves.dicksinhisan.us>2018-07-11 15:38:05 +0200
commite71aa06a9a1ea1e58aa192353622d40791f751d4 (patch)
tree183f0fa309056b432c253f604d6ff6ffd6f27594 /configlib/version.py
parentcbb9f2c3622ec96caf4ec9e58e84c8fbd3f45d23 (diff)
downloadconfiglib-e71aa06a9a1ea1e58aa192353622d40791f751d4.tar.gz
configlib-e71aa06a9a1ea1e58aa192353622d40791f751d4.tar.bz2
configlib-e71aa06a9a1ea1e58aa192353622d40791f751d4.zip
cleaning up docs + type hints
Diffstat (limited to 'configlib/version.py')
-rw-r--r--configlib/version.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/configlib/version.py b/configlib/version.py
index 475dc6e..2c6d4a3 100644
--- a/configlib/version.py
+++ b/configlib/version.py
@@ -1,16 +1,25 @@
-from dataclasses import dataclass
+"""versioninfo"""
-@dataclass
+# 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)
+VERSION = VersionInfo(1, 0, 0, 'a', 0)