Skip to content

Include inline typing metadata in distributions - #26

Merged
trissim merged 2 commits into
mainfrom
fix/package-typing-marker
Oct 29, 2026
Merged

trissim merged 2 commits into
mainfrom
fix/package-typing-marker

Conversation

@trissim

@trissim trissim commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Python type checkers currently treat the installed python-introspect package as untyped because its distributions omit the inline typing marker. Add the empty package marker and declare it as setuptools package data so wheel and source distributions carry it.

Validation: built both distributions with the repository setuptools backend, then inspected the wheel ZIP and source tarball. Both contain the empty python_introspect/py.typed marker. Source diff check passed; no runtime code changed.

The existing retry test expected empty output from a throwing dataclass factory, although merged #24 deliberately propagates that exception. Exact base CI failed the same single control. Update its two expectations to the existing exception contract while preserving no preparation-time execution, uncached failure and retry counts.

Focused validation: factory retry, exception identity and preparation timing all passed (3 controls). Wheel and source-tar marker contents were inspected.

Copilot AI balanced review requested due to automatic review settings October 29, 2026 17:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@trissim
trissim merged commit f2876b9 into main Oct 29, 2026
16 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.

2 participants