diff --git a/backend/infrahub/git/integrator.py b/backend/infrahub/git/integrator.py index 81d7fc0845..e377ccfd3d 100644 --- a/backend/infrahub/git/integrator.py +++ b/backend/infrahub/git/integrator.py @@ -1156,9 +1156,9 @@ async def execute_python_check( module = importlib.import_module(file_info.module_name) - check_class: InfrahubCheck = getattr(module, class_name) + check_class: type[InfrahubCheck] = getattr(module, class_name) - check = await check_class.init( + check = check_class( root_directory=commit_worktree.directory, branch=branch_name, client=client, params=params ) await check.run()