@@ -32,33 +32,34 @@ def __init__(self, config: RailsConfig, verbose: bool = False):
3232 self .verbose = verbose
3333
3434 # Register the actions with the dispatcher.
35+ paths = config .imported_paths
36+ import_paths = list (paths .values ()) if paths else None
3537 self .action_dispatcher = ActionDispatcher (
3638 config_path = config .config_path ,
37- import_paths = list (
38- config .imported_paths .values () if config .imported_paths else []
39- ),
39+ import_paths = import_paths ,
4040 )
4141
4242 if hasattr (self , "_run_output_rails_in_parallel_streaming" ):
4343 self .action_dispatcher .register_action (
44- getattr ( self , " _run_output_rails_in_parallel_streaming" ),
44+ self . _run_output_rails_in_parallel_streaming , # type: ignore[attr-defined]
4545 name = "run_output_rails_in_parallel_streaming" ,
4646 )
4747
4848 if hasattr (self , "_run_flows_in_parallel" ):
4949 self .action_dispatcher .register_action (
50- getattr (self , "_run_flows_in_parallel" ), name = "run_flows_in_parallel"
50+ self ._run_flows_in_parallel , # type: ignore[attr-defined]
51+ name = "run_flows_in_parallel" ,
5152 )
5253
5354 if hasattr (self , "_run_input_rails_in_parallel" ):
5455 self .action_dispatcher .register_action (
55- getattr ( self , " _run_input_rails_in_parallel" ),
56+ self . _run_input_rails_in_parallel , # type: ignore[attr-defined]
5657 name = "run_input_rails_in_parallel" ,
5758 )
5859
5960 if hasattr (self , "_run_output_rails_in_parallel" ):
6061 self .action_dispatcher .register_action (
61- getattr ( self , " _run_output_rails_in_parallel" ),
62+ self . _run_output_rails_in_parallel , # type: ignore[attr-defined]
6263 name = "run_output_rails_in_parallel" ,
6364 )
6465
0 commit comments