Notice that helper attributes are passed as keyword arguments to the helper. In some cases, however, attribute names include special characters that are not allowed in Python identifiers (e.g., hyphens) and therefore cannot be used as keyword argument names. For example:
will not work because "_data-role" includes a hyphen, which will produce a Python syntax error.
In such cases you have a couple of options. You can use the data argument (this time without a leading underscore) to pass a dictionary of related attributes without their leading hyphen, and the output will have the desired combinations e.g.
or you can instead pass the attributes as a dictionary and make use of Python's ** function arguments notation, which maps a dictionary of (key:value) pairs into a set of keyword arguments: