pyiron / pyiron_workflow

Graph-and-node based workflows
BSD 3-Clause "New" or "Revised" License
14 stars 1 forks source link

Overload decorators for argument-free use #405

Closed liamhuber closed 3 months ago

liamhuber commented 3 months ago

I.e. if the first positional argument passed to the decorator is a callable (rather than a string), verify that there are no other arguments and then act on the received value. This avoids the trailing parenthesis currently necessary with @...as_function_node()

liamhuber commented 3 months ago

Same as #317, I just forgot I'd already issued it