auto/terraform: typing hints for base terraform module
This commit is contained in:
parent
ccf0ce6a06
commit
51f580a304
4 changed files with 35 additions and 16 deletions
|
@ -60,7 +60,7 @@ jobs = {
|
|||
|
||||
def run_all(**kwargs: bool) -> None:
|
||||
for job in jobs.values():
|
||||
run_job(job, **kwargs)
|
||||
run_job(job, **kwargs) # type: ignore
|
||||
|
||||
|
||||
def run_job(job_cls: Type[BaseAutomation], *,
|
||||
|
@ -136,7 +136,9 @@ class AutomateCliHandler:
|
|||
def run(self) -> None:
|
||||
with app.app_context():
|
||||
if self.args.job:
|
||||
run_job(jobs[self.args.job], force=self.args.force, ignore_schedule=self.args.ignore_schedule)
|
||||
run_job(jobs[self.args.job], # type: ignore
|
||||
force=self.args.force,
|
||||
ignore_schedule=self.args.ignore_schedule)
|
||||
elif self.args.all:
|
||||
run_all(force=self.args.force, ignore_schedule=self.args.ignore_schedule)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue