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

Introduce Python type stubs for the bindings #1

Merged
merged 2 commits into from
Oct 2, 2022
Merged

Introduce Python type stubs for the bindings #1

merged 2 commits into from
Oct 2, 2022

Conversation

ziyadedher
Copy link
Contributor

@ziyadedher ziyadedher commented Oct 2, 2022

I wish PyO3 had automatic type stub generation but alas, not quite yet: PyO3/pyo3#2454

This PR introduces some manually-written types. Gonna need to keep types manually up to date if the underlying Rust changes, though, which might be annoying.

Maturin should automatically pick up the type bindings at build time: https://maturin.rs/project_layout.html#adding-python-type-information

@ziyadedher ziyadedher changed the title Introduce typing for the bindings Introduce Python type stubs for the bindings Oct 2, 2022
@gakonst gakonst merged commit 1a9c440 into paradigmxyz:master Oct 2, 2022
@ziyadedher ziyadedher deleted the ziyadedher/typing branch October 3, 2022 00:45
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