Add missing imports and cleanup
This commit is contained in:
parent
80c0799d1a
commit
1743dce46d
3 changed files with 3 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
from enum import Enum
|
||||||
class ReleaseType(Enum):
|
class ReleaseType(Enum):
|
||||||
MAJOR = 0
|
MAJOR = 0
|
||||||
MINOR = 1
|
MINOR = 1
|
||||||
|
|
|
@ -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():
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue