pyiron / pyiron_workflow

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

QoL: `as_dataclass_node` should automatically dataclass things #343

Open liamhuber opened 3 weeks ago

liamhuber commented 3 weeks ago

If the decorated object is just a regular class and not a dataclass, our decorator should take care of adding the @dataclass wrapper, so that users don't need to write two decorators (but can still pass in an actual dataclass if they have one and want to).