The biggest advantage of my coworkers on a small team fully writing code with AI now is that I can just add whatever guidelines I like to the monorepo AGENTS.md and their code will automatically respect it. I added instructions to write fully typed code and the codebase became much better.
I just spent a week doing a medium sized python project with Claude, and purposefully didn't give it much of a pointer on style out of curiosity. Really very impressed with the code quality, and everything is well typed. I did declare up front to use ty, maybe that nudged it in the direction.
Agents respond _really_ strongly to any feedback mechanisms you put in. Throwing in a typechecker will make them glom onto that - they'll run it constantly as a way to check its work, respect its errors, etc.