Use a type checker! Pyright can get you like 80% of Rust's type safety.
https://python.plainenglish.io/how-instagram-uses-python-sca...