This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author UnHumbleBen
Recipients Michael Robellard, UnHumbleBen, eric.smith, iivanyuk, juanpa.arrivillaga
Date 2021-06-06.00:25:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1622939100.47.0.951106789391.issue39247@roundup.psfhosted.org>
In-reply-to
Content
Would this issue not be trivially resolved if there was a way to specify alias in the dataclasses field? I.e.:

_uploaded_by: str = dataclasses.field(alias="uploaded_by", default=None, init=False)

Ultimately, the main goal is to make it so that the generated __init__ constructor does

self._uploaded_by = uploaded_by

but with current implementation, there is no aliasing so the default __init__ constructor is always:

self._uploaded_by = _uploaded_by
History
Date User Action Args
2021-06-06 00:25:00UnHumbleBensetrecipients: + UnHumbleBen, eric.smith, Michael Robellard, juanpa.arrivillaga, iivanyuk
2021-06-06 00:25:00UnHumbleBensetmessageid: <1622939100.47.0.951106789391.issue39247@roundup.psfhosted.org>
2021-06-06 00:25:00UnHumbleBenlinkissue39247 messages
2021-06-06 00:25:00UnHumbleBencreate