Skip to content

fix(python): add proper typings for async method args and return types#2071

Merged
spetz merged 3 commits into
apache:masterfrom
cstruct:python-sdk-typing-method-return-types
Aug 3, 2025
Merged

fix(python): add proper typings for async method args and return types#2071
spetz merged 3 commits into
apache:masterfrom
cstruct:python-sdk-typing-method-return-types

Conversation

@cstruct
Copy link
Copy Markdown
Contributor

@cstruct cstruct commented Aug 2, 2025

Update pyo3-stub-gen to 0.12.0 (with crates.io patch) to allowing us to override Python types in generated stub file. This fixes use of unsafe impls and provides types where we previously generated typing.Any.

Once 0.12.0 has been released to crates.io I will add another PR removing the patch but this should not block a release of the Python SDK since a built wheel does not care where we pull the sources from.

@cstruct cstruct marked this pull request as ready for review August 3, 2025 11:04
Comment thread foreign/python/Cargo.toml Outdated
@spetz spetz merged commit f24a11a into apache:master Aug 3, 2025
26 checks passed
@cstruct cstruct deleted the python-sdk-typing-method-return-types branch August 3, 2025 13:58
hageshiame pushed a commit to hageshiame/iggy that referenced this pull request Nov 7, 2025
apache#2071)

Update [`pyo3-stub-gen`](https://github.com/Jij-Inc/pyo3-stub-gen) to
`0.12.0` (with crates.io patch) to allowing us to override Python types
in generated stub file. This fixes use of unsafe impls and provides
types where we previously generated `typing.Any`.
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.

3 participants