RPi.GPIO stubs are on typeshed as of https://github.com/python/typeshed/pull/11345
Adding type stubs would help teach linting and type-checking tools about possible imports, symbols and class/methods definitions. See https://peps.python.org/pep-0561/#specification If the maintainer(s) of this project does not want to provide and maintain type-stubs, you can create your own package and distribute it on PyPI. Or request and/or add it to https://github.com/python/typeshed . This also relates to the following stub-request Pylance issue: https://github.com/microsoft/python-type-stu...