Skip to content

Conversation

gentlegiantJGC
Copy link
Contributor

@gentlegiantJGC gentlegiantJGC commented Aug 21, 2025

Description

When comparing buffer types there are some edge cases on some platforms that are equivalent but the format string is not identical.
item_type_is_equivalent_to is more forgiving than direct string comparison.

Suggested changelog entry:

  • Improve buffer_info type checking in numpy docs.

📚 Documentation preview 📚: https://pybind11--5805.org.readthedocs.build/

When comparing buffer types there are some edge cases on some platforms that are equivalent but the format string is not identical.
item_type_is_equivalent_to is more forgiving than direct string comparison.
@henryiii henryiii merged commit 8bbc309 into pybind:master Aug 21, 2025
84 of 86 checks passed
@github-actions github-actions bot added the needs changelog Possibly needs a changelog entry label Aug 21, 2025
@henryiii henryiii changed the title Improve buffer_info type checking in numpy docs docs: improve buffer_info type checking in numpy docs Aug 21, 2025
@gentlegiantJGC gentlegiantJGC deleted the impr-numpy-docs branch August 22, 2025 08:12
@henryiii henryiii removed the needs changelog Possibly needs a changelog entry label Aug 22, 2025
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