Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add py.typed marker #484

Merged
merged 1 commit into from
Dec 18, 2024
Merged

Add py.typed marker #484

merged 1 commit into from
Dec 18, 2024

Conversation

ecomodeller
Copy link
Member

ModelSkill has type annotations on the entire public api.

This can be utilized by type checkers such as mypy, but it requires a py.typed file in the source directory.

Otherwise you get this😿

$ mypy hello.py
hello.py:1: error: Skipping analyzing "modelskill": module is installed, but missing library stubs or py.typed marker  [import-untyped]
hello.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

@jsmariegaard jsmariegaard merged commit 8c668a9 into main Dec 18, 2024
6 checks passed
@jsmariegaard jsmariegaard deleted the py.typed branch December 18, 2024 09:34
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.

2 participants