[issue39247] dataclass defaults and property don't work together

2021-06-05 Thread Benjamin Lee
Benjamin Lee added the comment: > I'm not sure "alias" feels quite right, as it only applies to __init__ (if > I'm understanding it correctly). Maybe `init_alias` might be a better name. In any case, this would support privat

[issue39247] dataclass defaults and property don't work together

2021-06-05 Thread Benjamin Lee
Benjamin Lee 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