fix some linting

This commit is contained in:
Michael Jerger 2023-08-14 20:41:04 +02:00
parent 2e24e79a4c
commit 7d2d197cbb

View file

@ -4,10 +4,12 @@ from .common import (
Validateable,
)
class ArtifactType(Enum):
TEXT = 0
JAR = 1
class Artifact(Validateable):
def __init__(self, path: str):
self.path_str = path
@ -22,7 +24,7 @@ class Artifact(Validateable):
return "application/x-java-archive"
case _:
return "text/plain"
def validate(self):
result = []
result += self.__validate_is_not_empty__("path_str")
@ -40,4 +42,3 @@ class Artifact(Validateable):
def __hash__(self) -> int:
return self.__str__().__hash__()