Summary of what happened:
I am trying to use datalad
for a (for now) private project. I am adding type hints to my functions and using mypy
for type checking.
When mypy
runs on the module that imports datalad
it raises two errors:
/paht/to/module.py:24: error: Skipping analyzing "datalad.api": module is installed, but missing library stubs or py.typed marker [import-untyped]
/paht/to/module.py:25: error: Skipping analyzing "datalad.support.exceptions": module is installed, but missing library stubs or py.typed marker [import-untyped]
/paht/to/module.py:25: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
I have not been able to determine if and how datalad
provides type hints, although I do see pyi
files in the source code. I would like to avoid telling mypy
to ignore the datalad
imports if possible. Is there any other solution to this?
Command used (and if a helper script was used, a link to the helper script or the command generated):
The two statements at issue are:
from datalad.api import Dataset
from datalad.support.exceptions import IncompleteResultsError
Version:
Datalad 1.2.1
Environment (Docker, Singularity / Apptainer, custom installation):
Ubuntu 22.04, Python 3.10.