Common issues and solutions
This section has examples of cases when you need to update your codeto use static typing, and ideas for working around issues if mypydoesn’t work as expected. Statically typed code is often identical tonormal Python code (except for type annotations), but sometimes you needto do things slightly differently.