ci: update pyright (#3546)

This commit is contained in:
Jens L
2022-09-07 00:23:25 +02:00
committed by GitHub
parent 03a3f1bd6f
commit 62f93c83d4
41 changed files with 131 additions and 95 deletions

View File

@ -62,6 +62,8 @@ if __name__ == "__main__":
try:
for migration in Path(__file__).parent.absolute().glob("system_migrations/*.py"):
spec = spec_from_file_location("lifecycle.system_migrations", migration)
if not spec:
continue
mod = module_from_spec(spec)
# pyright: reportGeneralTypeIssues=false
spec.loader.exec_module(mod)