типизация

Fix mypy error

I check my code with the mypy analyzer. The following errors occurred: There is an object names: List[str], an error {[18] ... stand the principles of working correctly with mypy - how do I correctly write type annotations so as not to get such errors?

Typing in python

Unfortunately, I don't know how much the title corresponds to the problem described below, if it can be considered a problem ... his is a normal phenomenon, and the fee for dynamic typing. The only question is how to deal with it? And how to write code.