Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh committed Oct 6, 2024
1 parent 77981af commit cbcfac0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beaker/data_model/experiment_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ class RetrySpec(BaseModel, frozen=False):
Defines the retry behavior of an experiment.
"""

allowed_task_retries: int
allowed_task_retries: Optional[int] = None
"""
A positive integer specifying the maximum number of task retries allowed for the experiment,
with a max limit of 10.
Expand Down Expand Up @@ -900,7 +900,7 @@ def with_description(self, description: str) -> "ExperimentSpec":
"""
return self.model_copy(deep=True, update={"description": description})

def with_retries(self, allowed_task_retries: int) -> "TaskSpec":
def with_retries(self, allowed_task_retries: int) -> "ExperimentSpec":
"""
Return a new :class:`ExperimentSpec` with the given number of retries.
"""
Expand Down

0 comments on commit cbcfac0

Please sign in to comment.