Writing Python like it's Rust
Lots of comments here are stating that typing is half baked in Python, and that if you gotta use types, you should use another language.<p>But that&#x27;s missing the point that Python is still not meant to be the best at anything, but good at most things.<p>And in this case, it&#x27;s exactly what you get: optional typing, with decent safety if you need it.<p>You can quick script or design seriously, you can explore in a shell or commit a public API into a file, you can start with untyped code and add some later.<p>That makes it cumbersome sometimes, yes. mypy is slow, and the typing system + match &#x2F; case have many rough edges.<p>But it also keeps Python incredibly versatile.<p>It&#x27;s amazing what you can do with this (not so) little language, and the whole ecosystem is always getting better and better.<p>Every time I try another language, I keep getting back into Python, because the fields I need tools for are vast, and it&#x27;s the only one that I&#x27;m pretty sure will handle a problem decently in all it&#x27;s various forms, especially the one I didn&#x27;t consider when I started.<p>There is immense value in this, because it keeps opportunities on the table no matter what you do. I often find my self during a project adding something I could only because Python let me do so easily.<p>Python is quirky, yet it still damn practical.