WikibaseIntegrator
WikibaseIntegrator copied to clipboard
Implement PEP 557
https://www.python.org/dev/peps/pep-0557/
Data classes seem nice 😃
I have tried twice using dataclasses in my tools. Both times I get weird errors and classes that are not properly initialized. I suggest we wait with dataclasses until it is a more stable feature.
Pydantic BaseModel is a nice alternative to data classes IMO. The only caveat is that init()/post_parse_init() does not exist. You have to call it manually after instantiation. That is a minor nuisance given that everything can easily be validated.