Problem
mypy reports import-untyped when importing tavily:
Skipping analyzing "tavily": module is installed, but missing library stubs or py.typed marker [import-untyped]
Root Cause
The tavily package uses inline type annotations (e.g. in async_tavily.py, utils.py, config.py, errors.py) but does not include a py.typed marker file. Without this file, mypy does not recognize the package as typed and falls back to import-untyped.
Reproduction
pip install tavily-python
python -c "import tavily"
mypy --strict -c "import tavily"
# Error: Skipping analyzing "tavily": module is installed, but missing library stubs or py.typed marker
Fix
Add a py.typed file to the package root (empty file, just the marker):
And ensure it is included in the package data in pyproject.toml or setup.py.
References
Problem
mypy reports
import-untypedwhen importingtavily:Root Cause
The
tavilypackage uses inline type annotations (e.g. inasync_tavily.py,utils.py,config.py,errors.py) but does not include apy.typedmarker file. Without this file, mypy does not recognize the package as typed and falls back toimport-untyped.Reproduction
Fix
Add a
py.typedfile to the package root (empty file, just the marker):And ensure it is included in the package data in
pyproject.tomlorsetup.py.References