Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kourbou
Copy link
Contributor

@kourbou kourbou commented Jul 15, 2024

According to PEP 561, packages with inline type annotations should put a py.typed marker file in their package directory. This fixes mypy import-untyped errors when type checking code which imports laplace:

error: Skipping analyzing "laplace": module is installed, but missing library stubs or py.typed marker.
    from laplace import Laplace
    ^
note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

According to PEP 561, packages with inline type annotations should put
a `py.typed` marker file in their package directory. This fixes mypy's
`import-untyped` error when type checking code which imports `laplace`.
@wiseodd
Copy link
Collaborator

wiseodd commented Jul 15, 2024

LGTM thanks!

@wiseodd wiseodd merged commit 7f4c706 into aleximmer:main Jul 15, 2024
@kourbou kourbou deleted the pep-561-compat branch July 15, 2024 16:09
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