Type errors help maintain consistency when the LLM doesn't look at all the files. They're useful input for LLMs.
Declared input and output types also make code easier to read when you do look at code yourself.