lhupfeldt / multiconf

Python module for data holder objects with multiple environment specific values for a single property

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow @required decorator to take a list

andywis opened this issue · comments

As a programmer using multiconfi, I would like to supply the parameters to the @required decorator as a list, not as a string with commas in.
This would be help readability when there are many @required parameters. It would also be nice to have it on other decorators, e.g. @nested_repeatables.

Thanks
Andy Watkins

Hi Andy,

I will make it support both syntaxes, when I get some spare time.

Regards
LArs

@required, @required_if and @nested_repeatable now supports *args in addition to the existing syntax