Skip to content

reexport PyAnyMethods and friends from pyo3::types#3895

Merged
davidhewitt merged 2 commits intoPyO3:mainfrom
Icxolu:prelude
Feb 24, 2024
Merged

reexport PyAnyMethods and friends from pyo3::types#3895
davidhewitt merged 2 commits intoPyO3:mainfrom
Icxolu:prelude

Conversation

@Icxolu
Copy link
Copy Markdown
Member

@Icxolu Icxolu commented Feb 23, 2024

Part of #3684, following #3832 (comment)

This reexports the traits of Bound API under the pyo3::types namespace in addition to the prelude. The prelude is only really meant for glob import, so this is nicer for targeted imports.

This also adds PySliceMethods to the prelude, which was previously missing.

@Icxolu Icxolu added the CI-skip-changelog Skip checking changelog entry label Feb 23, 2024
@davidhewitt
Copy link
Copy Markdown
Member

Thanks, as per the linked comment I think this is the right solution for how to make these traits public (even if we don't expect most users to import them this way).

The nightly failures look related to the changes here, mind fixing them up please? (I had only just fixed the nightly job after a very very long string of failures 😅)

Copy link
Copy Markdown
Member

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

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

💯

@davidhewitt davidhewitt added this pull request to the merge queue Feb 24, 2024
Merged via the queue into PyO3:main with commit c06bb8f Feb 24, 2024
@Icxolu Icxolu deleted the prelude branch February 24, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI-skip-changelog Skip checking changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants