Skip to content

Commit

Permalink
Fix more mypy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
iameskild committed Sep 11, 2023
1 parent 980c025 commit 9cce26f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kbatch/kbatch/_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def _make_job_spec(
return V1JobSpec(template=template, backoff_limit=0, ttl_seconds_after_finished=300)


def _make_job_name(name: str, schedule: str = None):
def _make_job_name(name: str, schedule: Union[str, None] = None):
generate_name = name
if not name.endswith("-"):
generate_name = name + "-"
Expand Down
2 changes: 1 addition & 1 deletion kbatch/kbatch/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def _request_action(
token: Optional[str],
method: str,
model: Union[V1Job, V1CronJob],
resource_name: str = None,
resource_name: Union[str, None] = None,
json_data: Optional[dict] = None,
):
client = httpx.Client(follow_redirects=True)
Expand Down

0 comments on commit 9cce26f

Please sign in to comment.