@@ -375,7 +375,9 @@ def call(
375375 errors = _convert_validation_errors (e ),
376376 ) from e
377377
378- ctx .data ["_apcore.executor.redacted_output" ] = redact_sensitive (output , module .output_schema .model_json_schema ())
378+ ctx .data ["_apcore.executor.redacted_output" ] = redact_sensitive (
379+ output , module .output_schema .model_json_schema ()
380+ )
379381
380382 # Step 10 -- Middleware After
381383 output = self ._middleware_manager .execute_after (module_id , inputs , output , ctx )
@@ -497,18 +499,24 @@ def validate(
497499 try :
498500 preflight_warnings = module .preflight (inputs , ctx )
499501 if isinstance (preflight_warnings , list ) and preflight_warnings :
500- checks .append (PreflightCheckResult (
501- check = "module_preflight" , passed = True , warnings = preflight_warnings ,
502- ))
502+ checks .append (
503+ PreflightCheckResult (
504+ check = "module_preflight" ,
505+ passed = True ,
506+ warnings = preflight_warnings ,
507+ )
508+ )
503509 else :
504510 checks .append (PreflightCheckResult (check = "module_preflight" , passed = True ))
505511 except Exception as exc :
506512 # preflight() should not raise, but handle gracefully if it does
507- checks .append (PreflightCheckResult (
508- check = "module_preflight" ,
509- passed = True ,
510- warnings = [f"preflight() raised { type (exc ).__name__ } : { exc } " ],
511- ))
513+ checks .append (
514+ PreflightCheckResult (
515+ check = "module_preflight" ,
516+ passed = True ,
517+ warnings = [f"preflight() raised { type (exc ).__name__ } : { exc } " ],
518+ )
519+ )
512520
513521 valid = all (c .passed for c in checks )
514522 return PreflightResult (valid = valid , checks = checks , requires_approval = requires_approval )
@@ -873,7 +881,9 @@ async def call_async(
873881 errors = _convert_validation_errors (e ),
874882 ) from e
875883
876- ctx .data ["_apcore.executor.redacted_output" ] = redact_sensitive (output , module .output_schema .model_json_schema ())
884+ ctx .data ["_apcore.executor.redacted_output" ] = redact_sensitive (
885+ output , module .output_schema .model_json_schema ()
886+ )
877887
878888 # Step 10 -- Middleware After (async-aware)
879889 output = await self ._middleware_manager .execute_after_async (module_id , inputs , output , ctx )
@@ -997,7 +1007,9 @@ async def stream(
9971007 errors = _convert_validation_errors (e ),
9981008 ) from e
9991009
1000- ctx .data ["_apcore.executor.redacted_output" ] = redact_sensitive (output , module .output_schema .model_json_schema ())
1010+ ctx .data ["_apcore.executor.redacted_output" ] = redact_sensitive (
1011+ output , module .output_schema .model_json_schema ()
1012+ )
10011013
10021014 # Step 10 -- Middleware After (async-aware)
10031015 output = await self ._middleware_manager .execute_after_async (module_id , effective_inputs , output , ctx )
0 commit comments