From fe544eb968532ca35e9e39a159d367e387b74b2b Mon Sep 17 00:00:00 2001 From: Andreas Burger Date: Wed, 2 Jun 2021 12:47:54 +0000 Subject: [PATCH] lint --- bindings-python/gci/componentmodel.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bindings-python/gci/componentmodel.py b/bindings-python/gci/componentmodel.py index e0328f87..ba3e0a57 100644 --- a/bindings-python/gci/componentmodel.py +++ b/bindings-python/gci/componentmodel.py @@ -37,6 +37,7 @@ class AccessType(enum.Enum): LOCAL_FILESYSTEM_BLOB = 'localFilesystemBlob' NONE = 'None' # the resource is only declared informally (e.g. generic) + class SourceType(enum.Enum): GIT = 'git' @@ -45,6 +46,7 @@ class ResourceType(enum.Enum): OCI_IMAGE = 'ociImage' GENERIC = 'generic' + class ResourceRelation(enum.Enum): LOCAL = 'local' EXTERNAL = 'external' @@ -377,10 +379,10 @@ def _read_schema_file(schema_file_path: str): def enum_or_string(v, enum_type: enum.Enum): - try: - return enum_type(v) - except ValueError: - return str(v) + try: + return enum_type(v) + except ValueError: + return str(v) @dc