Skip to content

Commit

Permalink
mypy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
anish29292 committed Jan 17, 2023
1 parent d7343df commit 6f3939d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import json
import os
import threading
from typing import Any, Dict, List
from typing import Any, Dict, List, Optional

from contaxy.operations.components import ComponentOperations
from contaxy.schema.exceptions import CREATE_RESOURCE_RESPONSES
Expand Down Expand Up @@ -231,7 +231,7 @@ def get_all_scheduled_jobs_from_db(


def get_job_from_job_input(
job_schedule: ScheduledJobInput, job_id: str = None
job_schedule: ScheduledJobInput, job_id: Optional[str] = None
) -> ScheduledJob:

return ScheduledJob(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ class ScheduledJob(ScheduledJobInput):
example="2022-09-29T11:39:52.441287",
)
last_run: str = Field(
None,
"",
description="The last time the job was run in ISO format.",
example="2022-09-29T11:39:52.441287",
)
next_run: str = Field(
None,
"",
description="The next time the job will be run in ISO format.",
example="2022-09-29T11:39:52.441287",
)

0 comments on commit 6f3939d

Please sign in to comment.