Benjamin Lee <bnl...@ucdavis.edu> added the comment:
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 ---------- nosy: +UnHumbleBen _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39247> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com