Message395191
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 |
|
Date |
User |
Action |
Args |
2021-06-06 00:25:00 | UnHumbleBen | set | recipients:
+ UnHumbleBen, eric.smith, Michael Robellard, juanpa.arrivillaga, iivanyuk |
2021-06-06 00:25:00 | UnHumbleBen | set | messageid: <1622939100.47.0.951106789391.issue39247@roundup.psfhosted.org> |
2021-06-06 00:25:00 | UnHumbleBen | link | issue39247 messages |
2021-06-06 00:25:00 | UnHumbleBen | create | |
|