3 ms·
I don't use typing with type checkers; I use it to remind readers of my code what types my functions take whenever that's not immediately obvious. The history
by Daishiman 4y ago
I don't use typing with type checkers; I use it to remind readers of my code what types my functions take whenever that's not immediately obvious.
The history of Python means that coders make functions whose return is usually quite clear, but when it's not, I'm really glad I have typing.
Also, some libraries like Pydantic make use of types in a very clever and productive way.
- deleted 4y ago[deleted]