Add missing imports and cleanup

This commit is contained in:
erik 2023-02-20 16:50:12 +01:00
parent 80c0799d1a
commit 1743dce46d
3 changed files with 3 additions and 2 deletions

View file

@ -1,3 +1,4 @@
from enum import Enum
class ReleaseType(Enum): class ReleaseType(Enum):
MAJOR = 0 MAJOR = 0
MINOR = 1 MINOR = 1

View file

@ -1,4 +1,4 @@
from enum import Enum from release_type import ReleaseType
from file_handlers import FileHandler from file_handlers import FileHandler
class Version(): class Version():

View file

@ -25,7 +25,7 @@ class VersionRepository():
return version_list, is_snapshot return version_list, is_snapshot
@classmethod @classmethod
def get(cls, file) -> VersionRepository: def get(cls, file):
inst = cls(file) inst = cls(file)
file_handler= inst.load_file(file) file_handler= inst.load_file(file)