Skip to content

Conversation

@davidhewitt
Copy link
Member

This PR makes the output type of IntoPyObject for PyBackedStr use PyString as the statically-known type. (This is not a runtime change.)

This works out being a nice ergonomics improvement because it allows PyBackedStr and &PyBackedStr to be used as the input type for obj.getattr() and similar methods which expect a type which converts to a string as the attribute name.

@davidhewitt
Copy link
Member Author

Will rebase after #5654 merges.

@davidhewitt davidhewitt marked this pull request as draft November 28, 2025 15:48
@davidhewitt davidhewitt marked this pull request as ready for review November 28, 2025 17:58
@Icxolu Icxolu enabled auto-merge November 28, 2025 19:39
@Icxolu Icxolu added this pull request to the merge queue Nov 28, 2025
github-merge-queue bot pushed a commit that referenced this pull request Nov 28, 2025
Merged via the queue into PyO3:main with commit 8b58f5d Nov 29, 2025
42 of 43 checks passed
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