Skip to content

Commit

Permalink
remove error raising
Browse files Browse the repository at this point in the history
  • Loading branch information
Nora-Olivia-Ammann committed Nov 15, 2024
1 parent 01f9661 commit 5ffc219
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
6 changes: 2 additions & 4 deletions src/dsp_tools/commands/validate_data/models/data_rdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ def make_graph(self) -> Graph:

class RDFTriples(ABC):
@abstractmethod
def make_graph(self) -> Graph:
raise NotImplementedError
def make_graph(self) -> Graph: ...


@dataclass
Expand Down Expand Up @@ -222,8 +221,7 @@ class AbstractFileValueRDF(RDFTriples):
value: Literal

@abstractmethod
def make_graph(self) -> Graph:
raise NotImplementedError
def make_graph(self) -> Graph: ...


@dataclass
Expand Down
12 changes: 4 additions & 8 deletions src/dsp_tools/commands/validate_data/models/input_problems.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,13 @@ class InputProblem(ABC):

@property
@abstractmethod
def problem(self) -> str:
raise NotImplementedError
def problem(self) -> str: ...

@abstractmethod
def get_msg(self) -> str:
raise NotImplementedError
def get_msg(self) -> str: ...

@abstractmethod
def to_dict(self) -> dict[str, str]:
raise NotImplementedError
def to_dict(self) -> dict[str, str]: ...

def _base_dict(self) -> dict[str, str]:
return {
Expand All @@ -168,8 +165,7 @@ def _base_dict(self) -> dict[str, str]:
}

@abstractmethod
def sort_value(self) -> str:
raise NotImplementedError
def sort_value(self) -> str: ...


#######################
Expand Down

0 comments on commit 5ffc219

Please sign in to comment.