Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rayg1234 committed Jan 22, 2025
1 parent aad1765 commit 88dfd15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fairchem/core/components/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def __init__(self, x: int, y: int):
self.x = x
self.y = y

def run(self, cfg: DictConfig = None) -> Any:
def run(self) -> Any:
assert hasattr(self, "fairchem_config")
if self.x * self.y > 1000:
raise ValueError("sum is greater than 1000!")
return self.x + self.y
Expand Down

0 comments on commit 88dfd15

Please sign in to comment.