top | item 20676136 (no title) batbomb | 6 years ago okay, so use type annotations and mypy --strict discuss order hn newest CydeWeys|6 years ago It's not my project; I'm just a collaborator. My experience has been that a very tiny minority of Python code out there is written in this style, so unless you're only starting projects from scratch, you can't benefit from it. batbomb|6 years ago you can gradually type (probably don't use --strict in that case). It might not be a ton of benefit if you aren't actually writing new code though.There's a good document on this:https://mypy.readthedocs.io/en/latest/existing_code.html load replies (1) totalperspectiv|6 years ago But at that point why not get something for they time you spend adding types and just use a different language?
CydeWeys|6 years ago It's not my project; I'm just a collaborator. My experience has been that a very tiny minority of Python code out there is written in this style, so unless you're only starting projects from scratch, you can't benefit from it. batbomb|6 years ago you can gradually type (probably don't use --strict in that case). It might not be a ton of benefit if you aren't actually writing new code though.There's a good document on this:https://mypy.readthedocs.io/en/latest/existing_code.html load replies (1)
batbomb|6 years ago you can gradually type (probably don't use --strict in that case). It might not be a ton of benefit if you aren't actually writing new code though.There's a good document on this:https://mypy.readthedocs.io/en/latest/existing_code.html load replies (1)
totalperspectiv|6 years ago But at that point why not get something for they time you spend adding types and just use a different language?
CydeWeys|6 years ago
batbomb|6 years ago
There's a good document on this:
https://mypy.readthedocs.io/en/latest/existing_code.html
totalperspectiv|6 years ago