Skip to content

Add type stubs for embreex - #11

Open
versatran01 wants to merge 3 commits into
trimesh:mainfrom
versatran01:main
Open

Add type stubs for embreex#11
versatran01 wants to merge 3 commits into
trimesh:mainfrom
versatran01:main

Conversation

@versatran01

Copy link
Copy Markdown

Thanks for the library. I was using it for a personal project and found that it's missing type stubs.
Disclosure: I generated these using antigravity.

@mikedh

mikedh commented May 25, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the PR! And no worries about AG... although could you ask it if it could produce a auto-generator for these PYI's? like uv run python typings.py? Or is that an absolute rabbit hole haha. Failing that is there any way to validate these hints we could add to CI? beartype works for native code, although I'm not sure what the story is for a binding like this.

@versatran01

Copy link
Copy Markdown
Author

Yeah, good idea. Let me give it a try.

- Set up stubgen-pyx, pytest, and mypy configuration in pyproject.toml
- Create package/generate_stubs.py to auto-generate and post-process type stubs
- Create tests/test_stubs.py to statically assert type stub synchronization
- Document stub generation and static validation in README.md
@versatran01

Copy link
Copy Markdown
Author

Add another commit that generate stubs with a python function. Let me know what you think.

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