Skip to content

Commit 946c733

Browse files
committed
Transition away from InfrahubCheck.init()
1 parent 4936737 commit 946c733

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/infrahub/git/integrator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,9 +1156,9 @@ async def execute_python_check(
11561156

11571157
module = importlib.import_module(file_info.module_name)
11581158

1159-
check_class: InfrahubCheck = getattr(module, class_name)
1159+
check_class: type[InfrahubCheck] = getattr(module, class_name)
11601160

1161-
check = await check_class.init(
1161+
check = check_class(
11621162
root_directory=commit_worktree.directory, branch=branch_name, client=client, params=params
11631163
)
11641164
await check.run()

0 commit comments

Comments
 (0)