Skip to content

Commit

Permalink
Black formatter compliance test
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Gobbi committed Sep 6, 2024
1 parent f4535c9 commit 1348f21
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions unified_planning/test/test_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,15 @@ class OneshotEnginePartial(Engine, OneshotPlannerMixin):
@property
def name(self):
return "PartialEngine"

def supports(self):

@staticmethod
def supports(
problem_kind: ProblemKind,
): # super method requires this to be static with problem_kind as an argument
return True

def supported_kind(self):

@staticmethod
def supported_kind() -> ProblemKind: # super method requires this to be static
return ProblemKind()

with self.assertRaises(TypeError):
Expand Down

0 comments on commit 1348f21

Please sign in to comment.