Use a type checker! Pyright can get you like 80% of Rust's type safety.
Sort of like closing 80% of a submarine's hatches and then diving.