Skip to content

Stub: generate relative imports#6097

Merged
Tpt merged 1 commit into
PyO3:mainfrom
Tpt:tpt/stub-relative-imports
Jun 3, 2026
Merged

Stub: generate relative imports#6097
Tpt merged 1 commit into
PyO3:mainfrom
Tpt:tpt/stub-relative-imports

Conversation

@Tpt
Copy link
Copy Markdown
Contributor

@Tpt Tpt commented Jun 2, 2026

This is useful for mixed Python/Rust projects where the Rust module (hence the stubs) are not in the root package but in a sub-package

See also PyO3/maturin#3211

@Tpt Tpt force-pushed the tpt/stub-relative-imports branch 2 times, most recently from 025cce4 to cb67530 Compare June 2, 2026 14:02
This is useful for mixed Python/Rust projects where the Rust module (hence the stubs) are not in the root package but in a sub-package
@Tpt Tpt force-pushed the tpt/stub-relative-imports branch from cb67530 to 6755044 Compare June 2, 2026 14:10
@Tpt Tpt marked this pull request as ready for review June 2, 2026 15:17
@Tpt Tpt mentioned this pull request Jun 2, 2026
@Tpt Tpt added this pull request to the merge queue Jun 3, 2026
Merged via the queue into PyO3:main with commit 2803a72 Jun 3, 2026
48 checks passed
@Tpt Tpt deleted the tpt/stub-relative-imports branch June 3, 2026 16:09
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