|
|
|
|
|
by rrauenza
403 days ago
|
|
I adopted Python type annotations on a new project I was writing. Requirements shifted a lot as well as the implementation. It was amazing. I could refactor quickly after changing a dataclass, field name, function arguments, type, etc. I just ran mypy and it immediately told me everywhere I needed to update code to reference the new refactored type or data structure. Then only after it was mypy clean, I ran the unit tests. |
|