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

[libshortfin] Fix python stub generation. #195

Merged
merged 2 commits into from
Sep 18, 2024
Merged

Conversation

stellaraccident
Copy link
Contributor

@stellaraccident stellaraccident commented Sep 18, 2024

This brings pylance back to life for the native bindings. It was giving confusing error squiggles about not being able to use types that were variables, but the root cause was that the backing stubs were not generated properly for all of the module.

Includes a couple of other typing tweaks that were found to be helpful.

This brings pylance back to life for the native bindings. It was giving confusing error squiggles about not being able to use types that were variables, but the root cause was that the backing stubs were not generated properly for all of the module.
Copy link
Contributor

@Groverkss Groverkss left a comment

Choose a reason for hiding this comment

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

LGTM!

I was looking at the same thing today. Nanobind has a —recursive flag to do this automatically too, that i was using manually. Sadly the cmake support for it never landed wjakob/nanobind#463

@stellaraccident
Copy link
Contributor Author

LGTM!

I was looking at the same thing today. Nanobind has a —recursive flag to do this automatically too, that i was using manually. Sadly the cmake support for it never landed wjakob/nanobind#463

Yeah, been on my list for a few days too. One more tweak coming in.

@stellaraccident stellaraccident merged commit c6312d2 into main Sep 18, 2024
7 checks passed
@stellaraccident stellaraccident deleted the shortfin_py_stubs branch September 18, 2024 14:44
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