Skip to content

build: ship py.typed marker for PEP 561 typing - #64

Merged
david-debest merged 1 commit into
mainfrom
63-build/py-typed
Oct 1, 2026
Merged

david-debest merged 1 commit into
mainfrom
63-build/py-typed

Conversation

@david-debest

Copy link
Copy Markdown
Contributor

Closes #63

  • Add empty src/knowledge_mapper/py.typed.
  • Declare it in [tool.setuptools.package-data] so inclusion doesn't rely on setuptools defaults.

Verification: built wheel + sdist both contain py.typed. Installed the wheel in a fresh venv and ran mypy on a script importing knowledge_mapper: no errors, module type resolved (not Any). Removing the marker reproduces the import-untyped error.

Without the marker mypy treats the installed package as untyped and
infers everything as Any.

Closes #63

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@david-debest david-debest self-assigned this Oct 1, 2026
@david-debest
david-debest merged commit ad971aa into main Oct 1, 2026
3 checks passed
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.

Ship a py.typed marker so type checkers use the package's inline types

1 participant