Skip to content

Add the py.typed marker to the spdx3 package#895

Open
Builder106 wants to merge 1 commit into
spdx:mainfrom
Builder106:add-spdx3-py-typed
Open

Add the py.typed marker to the spdx3 package#895
Builder106 wants to merge 1 commit into
spdx:mainfrom
Builder106:add-spdx3-py-typed

Conversation

@Builder106

Copy link
Copy Markdown

What

Adds a py.typed marker to the spdx3 package (src/spdx_tools/spdx3/py.typed).

Why

spdx3 is typed inline like spdx, but it's missing the PEP 561 py.typed marker. Without it, type-checkers (mypy, pyright) treat spdx_tools.spdx3 as untyped and ignore its annotations for downstream consumers. spdx already ships src/spdx_tools/spdx/py.typed; this brings spdx3 in line.

Notes

No packaging change needed — the existing [tool.setuptools.package-data] rule "*" = ["py.typed"] already ships the marker from every package, so the new file is included automatically.

Verification

Built the wheel (python -m build) and confirmed spdx_tools/spdx3/py.typed is now included alongside spdx_tools/spdx/py.typed.

Fixes #865

Signed-off-by: Builder106 <vaughanolayinka@gmail.com>
@Builder106

Builder106 commented Jun 17, 2026

Copy link
Copy Markdown
Author

Ready for review.

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.

Missing py.typed for spdx3

1 participant