Skip to content

Improve stub package for PEP 561 compliance and better IDE autocompletion#348

Merged
Brunner246 merged 1 commit intomainfrom
feature/improve-stubs-for-better-autocompletion
Apr 15, 2026
Merged

Improve stub package for PEP 561 compliance and better IDE autocompletion#348
Brunner246 merged 1 commit intomainfrom
feature/improve-stubs-for-better-autocompletion

Conversation

@Brunner246
Copy link
Copy Markdown
Contributor

  • 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

…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
@Brunner246 Brunner246 requested a review from 9and3 April 14, 2026 14:14
@Brunner246 Brunner246 requested a review from jspaquet as a code owner April 14, 2026 14:14
Copy link
Copy Markdown
Contributor

@9and3 9and3 left a comment

Choose a reason for hiding this comment

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

super cool py.typed addition, lgtm for the rest :)

@Brunner246 Brunner246 merged commit 1c7bf4e into main Apr 15, 2026
3 checks passed
@Brunner246 Brunner246 deleted the feature/improve-stubs-for-better-autocompletion branch April 21, 2026 05:34
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