Using MyPy with Maya

mayapy -m pip install mypy

Defaulting to user installation because normal site-packages is not writeable

mayapy -m pip show  mypy
Name: mypy
Version: 0.961
Summary: Optional static typing for Python
Home-page: http://www.mypy-lang.org/
Author: Jukka Lehtosalo
Author-email: jukka.lehtosalo@iki.fi
License: MIT License
Location: /Users/jmacey/Library/Python/3.9/lib/python/site-packages
Requires: tomli, typing-extensions, mypy-extensions

pip install PySide2-stubs

Next