generated from pyiron/pyiron_module_template
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Right now we allow an instance or a creator with args and kwargs:
pyiron_workflow/pyiron_workflow/mixin/run.py
Lines 19 to 21 in 309c68f
| InterpretableAsExecutor: TypeAlias = ( | |
| StdLibExecutor | tuple[Callable[..., StdLibExecutor], tuple, dict] | |
| ) |
It would be nice to also allow just the creating callable (implicit no args or kwargs) or just args/kwargs (implicit no kwargs/args) so that you can write things like wf.my_node.executor = ProcessPoolExecutor or wf.my_node.executor = (ThreadPoolExecutor, {"max_workers": 2})
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request