mypy

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?