From 1743dce46d8adb2f222865963e138dad8f6caff6 Mon Sep 17 00:00:00 2001 From: erik Date: Mon, 20 Feb 2023 16:50:12 +0100 Subject: [PATCH] Add missing imports and cleanup --- release_type.py | 1 + version.py | 2 +- version_repository.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/release_type.py b/release_type.py index e8cccbe..e4217a5 100644 --- a/release_type.py +++ b/release_type.py @@ -1,3 +1,4 @@ +from enum import Enum class ReleaseType(Enum): MAJOR = 0 MINOR = 1 diff --git a/version.py b/version.py index 0a08d99..0a5dd1f 100644 --- a/version.py +++ b/version.py @@ -1,4 +1,4 @@ -from enum import Enum +from release_type import ReleaseType from file_handlers import FileHandler class Version(): diff --git a/version_repository.py b/version_repository.py index 741aaa4..516a6f1 100644 --- a/version_repository.py +++ b/version_repository.py @@ -25,7 +25,7 @@ class VersionRepository(): return version_list, is_snapshot @classmethod - def get(cls, file) -> VersionRepository: + def get(cls, file): inst = cls(file) file_handler= inst.load_file(file)