3 ms·
I use Type hints and using mypy strictly. Huge fan of dataclasses as well. Most of the python I write is functions / functional + data classes with type hinte
by kingkongjaffa 4y ago
I use Type hints and using mypy strictly.
Huge fan of dataclasses as well.
Most of the python I write is functions / functional + data classes with type hinted everything and it seems to work nicely and make writing tests for functions very easy.
Using black, isort, mypy, pylint, pytest, makes every project simpler.