Skip to content

Add py.typed marker for PEP 561 type support - #191

Open
rujainatself wants to merge 1 commit into
tavily-ai:masterfrom
rujainatself:fix/add-py-typed-marker
Open

rujainatself wants to merge 1 commit into
tavily-ai:masterfrom
rujainatself:fix/add-py-typed-marker

Conversation

@rujainatself

Copy link
Copy Markdown

Fixes #170.

The tavily package ships inline type hints but no py.typed marker, so mypy/pyright report Skipping analyzing "tavily": module is installed, but missing library stubs or py.typed marker [import-untyped] and skip type checking for downstream users.

This PR adds an empty tavily/py.typed marker and configures setup.py (package_data + zip_safe=False) so the marker is included in the built distribution, per PEP 561.

Verified locally by installing the built package into a clean venv:

🤖 Generated with Claude Code

Closes tavily-ai#170

The tavily package ships inline type hints but no py.typed marker, so
mypy/pyright report 'missing library stubs or py.typed marker
[import-untyped]' and skip type checking for downstream users.

Add an empty tavily/py.typed marker and configure setup.py
(package_data + zip_safe=False) so the marker is included in the built
distribution per PEP 561.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing py.typed marker — mypy reports import-untyped

1 participant