Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Type information generation #122

Open
ProfFan opened this issue Sep 16, 2021 · 4 comments
Open

Add Type information generation #122

ProfFan opened this issue Sep 16, 2021 · 4 comments
Assignees
Labels
feature New feature or request

Comments

@ProfFan
Copy link
Collaborator

ProfFan commented Sep 16, 2021

We should have the ability to generate .pyi type stubs.

@ProfFan ProfFan added the feature New feature or request label Sep 16, 2021
@ProfFan ProfFan self-assigned this Sep 16, 2021
@varunagrawal
Copy link
Collaborator

I had a thought where we could use stubgen and then rsync to merge the .pyi files into the package.

@ProfFan
Copy link
Collaborator Author

ProfFan commented Oct 22, 2021

Stubgen is not getting all the type information. gtsam-stubs is made with stubgen and (many) manual tweaks, but it's still incomplete. Also stubgen don't have documentation.

@varunagrawal
Copy link
Collaborator

Maybe we can get a simple version working which will at least allow autocomplete?

@ProfFan
Copy link
Collaborator Author

ProfFan commented Oct 24, 2021

That is actually not difficult. I think it would look like the pybind generator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants