attrs/changelog.d/950.change.rst

6 lines
375 B
ReStructuredText

``attrs.field`` now supports an ``alias`` option for explicit ``__init__`` argument names.
Get ``__init__`` signatures matching any taste, peculiar or plain!
The `PEP 681 compatible <https://peps.python.org/pep-0681/#field-specifier-parameters>`_ ``alias`` option can be use to override private attribute name mangling,
or add other arbitrary field argument name overrides.