Missing library stubs or py.typed marker, are we missing something?

Hello, we are currently using “pymc” module in our project, and we noticed the following error while trying to run mypy from poetry : gamma_uplift.py:1: error: Skipping analyzing "pymc": module is installed, but missing library stubs or py.typed marker [import-untyped]
It appears that there is no py.typed file at the root of the module directory, which seems to be necessary for better integration with mypy as seen here PEP 561 & mypy docs

Are we missing something ?

Reproduceable code example:

Create a file with just import pymc
Then run mypy my_file.py

Error message:

my_file.py:1: error: Skipping analyzing “pymc”: module is installed, but missing library stubs or py.typed marker [import-untyped]
my_file.py:1: note: See Running mypy and managing imports - mypy 1.7.1 documentation
Found 1 error in 1 file (checked 26 source files)

PyMC version information:
PyMC 5.9.1
Python 3.10.12

1 Like

No, we don’t have anything like that. Feel free to open an issue on the GitHub repo. I have no clue how much work that would require and/or if people will want to shoulder it, but it doesn’t hurt to discuss it.

Thank you, the PR is create : https://github.com/pymc-devs/pymc/pull/7008