Message308608
It was suggested that I could contirbute to the docs of dataclasses in this issue. Which confuses me, as there doesn't appear to be any content here to comment on. But what the heck:
As I've been annoyingly persistent about on the python-dev list, I think we need to be quite careful about making type hints appear to be a requirement for using dataclasses. In order to counter this, we could:
* have the first couple example be type-less:
@dataclass
class C:
a: ... # field without a default
b: ... = 0 # field with a default
or something like that.
Then purposely introduce "how to add type hints" a bit down in the docs. |
|
Date |
User |
Action |
Args |
2017-12-19 02:41:17 | Chris.Barker | set | recipients:
+ Chris.Barker, eric.smith, docs@python, levkivskyi |
2017-12-19 02:41:17 | Chris.Barker | set | messageid: <1513651277.65.0.213398074469.issue32216@psf.upfronthosting.co.za> |
2017-12-19 02:41:17 | Chris.Barker | link | issue32216 messages |
2017-12-19 02:41:16 | Chris.Barker | create | |
|