Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
jennmueng committed Sep 6, 2024
1 parent 9db1c55 commit f0bf12d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/seer/automation/autofix/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
@dataclasses.dataclass
class ContinuationState(DbState[AutofixContinuation]):
@classmethod
def from_id(cls, id: int, model: type[BaseModel]) -> "ContinuationState":
return cast(ContinuationState, super().from_id(id, model, type=DbStateRunTypes.AUTOFIX))
def from_id(
cls, id: int, model: type[BaseModel], type: DbStateRunTypes = DbStateRunTypes.AUTOFIX
) -> "ContinuationState":
return cast(ContinuationState, super().from_id(id, model, type))

def set(self, state: AutofixContinuation):
state.mark_updated()
Expand Down

0 comments on commit f0bf12d

Please sign in to comment.