Fix return val and hardcoded None
This commit is contained in:
parent
d539c73318
commit
b06728c553
1 changed files with 3 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue