Skip to content

Add py.typed marker - #544

Merged
flying-sheep merged 1 commit into
mainfrom
feat/ship-py-typed
Jul 28, 2026
Merged

Add py.typed marker#544
flying-sheep merged 1 commit into
mainfrom
feat/ship-py-typed

Conversation

@Zethson

@Zethson Zethson commented Jul 28, 2026

Copy link
Copy Markdown
Member

We added type checking with mypy (#530) but forgot the py.typed.

The template type-checks the package with mypy, but without a `py.typed`
marker the annotations are invisible to consumers: their type checkers
report "module is installed, but missing library stubs or py.typed
marker" and fall back to `Any`.

Add the marker so generated packages export their types, and the
matching `Typing :: Typed` classifier for the PyPI metadata.
@github-actions

Copy link
Copy Markdown

A PR has been generated to the instance repo: scverse/cookiecutter-scverse-instance#308

Checks Status Documentation Preview

You can check out the PR to preview your changes in an instance of the cookiecutter template.
It will be kept in sync with this PR automatically.

@Zethson Zethson changed the title Ship a py.typed marker and advertise the package as typed Add py.typed marker Jul 28, 2026
@flying-sheep
flying-sheep merged commit 707f3fa into main Jul 28, 2026
8 checks passed
@flying-sheep
flying-sheep deleted the feat/ship-py-typed branch July 28, 2026 13:13
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