attrs/changelog.d/731.change.rst

6 lines
342 B
ReStructuredText
Raw Normal View History

``__attrs__init__()`` will now be injected if ``init=False``, or if ``auto_detect=True`` and a user-defined ``__init__()`` exists.
2021-01-23 12:03:04 +00:00
This enables users to do "pre-init" work in their ``__init__()`` (such as ``super().__init__()``).
``__init__()`` can then delegate constructor argument processing to ``self.__attrs_init__(*args, **kwargs)``.