Skip to content

[CHORE](annex) Place py.typed marker in the annex package, not the namespace root - #619

Open
Seth Fitzsimmons (sethfitz) wants to merge 1 commit into
mainfrom
annex-py-typed
Open

[CHORE](annex) Place py.typed marker in the annex package, not the namespace root#619
Seth Fitzsimmons (sethfitz) wants to merge 1 commit into
mainfrom
annex-py-typed

Conversation

@sethfitz

@sethfitz Seth Fitzsimmons (sethfitz) commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

overture-schema-annex shipped its PEP 561 marker at src/overture/schema/py.typed — the shared overture.schema namespace level — instead of src/overture/schema/annex/py.typed, where its code lives. A py.typed marker applies to the package directory it sits in; at the namespace level it claims the shared namespace is typed rather than marking overture.schema.annex.

Hatchling's packages = ["src/overture"] vacuum includes the whole tree, so the misplacement is masked today. It surfaces under any module-root-scoped build backend (uv_build), which would drop the marker silently — which is why this lands ahead of the uv_build migration.

Bottom of a three-PR stack migrating the workspace to uv_build / PEP 420 packaging.

Closes #621

overture-schema-annex shipped its PEP 561 marker at
src/overture/schema/py.typed -- the shared overture.schema namespace
level -- instead of src/overture/schema/annex/py.typed, where its code
lives. A py.typed marker applies to the package directory it sits in; at
the namespace level it claims the shared namespace is typed rather than
marking overture.schema.annex.

Hatchling's packages = ["src/overture"] vacuum includes the whole tree,
so the misplacement is masked today. It surfaces under any
module-root-scoped build backend (e.g. uv_build), which would drop the
marker silently.

Signed-off-by: Seth Fitzsimmons <seth@mojodna.net>
@github-actions

Copy link
Copy Markdown

❌ Linked Issue Check Failed

This PR does not reference enough linked issues (found 0, required 1).

Please link an issue from this repository, using Fixes #123, Closes #123, or the GitHub UI.

After adding a linked issue, you may need to manually re-run this check from the Checks tab to update the status.

@github-actions

Copy link
Copy Markdown

🗺️ Schema reference docs preview is live!

🌍 Preview https://staging.overturemaps.org/schema/pr/619/schema/index.html
🕐 Updated Jul 31, 2026 18:36 UTC
📝 Commit 0751ada
🔧 env SCHEMA_PREVIEW true

Note

♻️ This preview updates automatically with each push to this PR.

@vcschapp

Victor Schappert (vcschapp) commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

PR #629 should make this one moot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CHORE] overture-schema-annex places py.typed at the namespace root, not the package

2 participants