Skip to content

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