Fix return val and hardcoded None

This commit is contained in:
erik 2023-02-20 17:04:50 +01:00
parent d539c73318
commit b06728c553

View file

@ -3,8 +3,8 @@ from file_handlers import FileHandler
class Version():
def __init__(self, version_list, release_type):
self.version_list = None
def __init__(self, version_list: list):
self.version_list = version_list
self.version_string = None
self.is_snapshot = None
@ -30,6 +30,7 @@ class Version():
self.version_string = ".".join([str(x) for x in self.version_list])
if self.is_snapshot:
self.version_string += "-SNAPSHOT"
return self.version_string
@classmethod
def create_release_version(cls, version_list, release_type):