Commit 7a59552
committed
Improve stub package for PEP 561 compliance and better IDE autocompletion
- 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.toml1 parent 512394e commit 7a59552
44 files changed
Lines changed: 597 additions & 527 deletions
File tree
- src
- attribute_controller
- bim_controller
- cadwork
- connector_axis_controller
- dimension_controller
- element_controller
- endtype_controller
- file_controller
- geometry_controller
- list_controller
- machine_controller
- material_controller
- multi_layer_cover_controller
- roof_controller
- scene_controller
- shop_drawing_controller
- utility_controller
- visualization_controller
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | | - | |
| 56 | + | |
0 commit comments