Researchers please, I am begging. Pleading. Run your code through mypy or another static analysis tool just once. These kinds of mistakes are so trivially caught. I know that grad student time isn’t worth much, but mypy, pyright, and beartype (to name a few) are all free 🥹