Improve stub package for PEP 561 compliance and better IDE autocompletion#348
Merged
Brunner246 merged 1 commit intomainfrom Apr 15, 2026
Merged
Conversation
…tion - Add `py.typed` marker files to all packages (PEP 561) - Fix `cadwork/__init__.pyi` re-exports using `from .x import x as x` syntax - Add `__all__` to `cadwork/__init__.pyi` and `api_types.pyi` - Replace deprecated `typing.List`/`Dict`/`Tuple` with built-in generics (Python 3.12+) - Use `TypeAlias` for type aliases in `api_types.pyi` - Add `py.typed` and `*.pyi` to setuptools package-data in `pyproject.toml
9and3
approved these changes
Apr 15, 2026
Contributor
9and3
left a comment
There was a problem hiding this comment.
super cool py.typed addition, lgtm for the rest :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
py.typedmarker files to all packages (PEP 561)cadwork/__init__.pyire-exports usingfrom .x import x as xsyntax__all__tocadwork/__init__.pyiandapi_types.pyityping.List/Dict/Tuplewith built-in generics (Python 3.12+)TypeAliasfor type aliases inapi_types.pyipy.typedand*.pyito setuptools package-data in `pyproject.toml