Skip to content

Commit

Permalink
flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thijssnelleman committed Jan 10, 2025
1 parent fe493d9 commit 851eba9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions sparkle/tools/solver_wrapper_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ def parse_solver_wrapper_args(args: list[str]) -> dict[Any]:
return args_dict


def get_solver_call_params(args_dict: dict, prefix: str = "-", postfix: str = " ") -> list[str]:
def get_solver_call_params(args_dict: dict,
prefix: str = "-",
postfix: str = " ") -> list[str]:
"""Gather the additional parameters for the solver call.
Args:
Expand All @@ -69,4 +71,4 @@ def get_solver_call_params(args_dict: dict, prefix: str = "-", postfix: str = "
else:
params.extend([prefix + str(key) + postfix + str(args_dict[key])])

return params
return params
5 changes: 3 additions & 2 deletions sparkle/types/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


class SolverStatus(str, Enum):
"""Possible return states for solver runs."""
"""Possible return states for solver runs."""
SUCCESS = "SUCCESS" # Positive status
UNKNOWN = "UNKNOWN" # Semi positive status
SAT = "SAT" # SAT specific positive status
Expand All @@ -17,5 +17,6 @@ class SolverStatus(str, Enum):
ERROR = "ERROR"
KILLED = "KILLED"

def __str__(self):
def __str__(self: SolverStatus) -> str:
"""Return the string value of the SolverStatus."""
return str(self.value)

0 comments on commit 851eba9

Please sign in to comment.