auto/terraform: typing hints for base terraform module

This commit is contained in:
Iain Learmonth 2022-05-16 10:08:18 +01:00
parent ccf0ce6a06
commit 51f580a304
4 changed files with 35 additions and 16 deletions

View file

@ -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: