PEP484 describes its own type of stub file, saved with a pyi extension. The pyi file sits next to its .py equivalent and in addition to providing membership hints an docstrings like normal stubs, it ...