How do you think about typing in Python?
Anoniem
Best practice is to use typing to define not only dtypes, but input/output structure contracts. It’s a little helpful to say “dict” in your contract and very helpful to say “dict with these 5 keys” in your contract.