3 ms·
Typing in small scripts is pointless. The type annotations are only useful for large codebases
by animal_spirits 4y ago
Typing in small scripts is pointless. The type annotations are only useful for large codebases
- ghostwriter 4y agoVarious automation/pipelining scripts benefit greatly from typing, as it at least provides a level of assurance that data of proper shape is passed to relevant functions at all times. It helps especially when the automation scripts parse and extract and concatenate yaml portions from larger configs. I wouldn't want to write manual unit tests just to ensure shapes' validity.