fuel-plugin-murano/releasenotes/notes/var-kw-args-c42c31678d8bc74...

12 lines
603 B
YAML

---
features:
- >
Added the capability to declare MuranoPL YAML methods with variable length,
positional, and keyword arguments. This is done using argument ``Usage``
attribute. Regular arguments have ``Standard`` usage which is the default.
Variable length args (args in Python) should have ``Usage: VarArgs`` and
keyword args (kwargs) are declared with ``Usage: KwArgs``. Inside the
method they are seen as a list and a dictionary correspondingly. For such
arguments contracts are written for individual argument values, thus
no need to write them as lists or dicts.