Skip to content

Commit

Permalink
use abstractmethod for interface
Browse files Browse the repository at this point in the history
  • Loading branch information
g-marconet committed Nov 6, 2024
1 parent ca6bc15 commit 64dd282
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backend/engine/plugins/cicd_tools/interfaces/detector.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from abc import ABC, abstractmethod
from typing import TypedDict


Expand All @@ -12,6 +13,7 @@ class DetectorResult(TypedDict):
errors: list[str]


class Detector:
class Detector(ABC):
@abstractmethod
def check(self, path: str) -> DetectorResult:
raise NotImplementedError()
pass

0 comments on commit 64dd282

Please sign in to comment.