Dataclass properties in Python
The various Python files here are the attempts presented in the blog post to implement properties on dataclasses — which is not an intuitive task.
To run an interpreter using any of the attempts, you can make use of Python's
-i command line argument, which starts a shell after running a script:
$ python -i 3_field.py >>> # Start doing things with `Vehicle`!
Official documentation on dataclasses and features used in the blog post: