Skip to content

Conversation

@davidhewitt
Copy link
Member

This is a bit of a cleanup following on from #4729:

  • Adds test cases to the trailing option case to make sure we don't treat them as having defaults of None any more (we seemed to be missing tests).
  • Refactors the macro code to store the default value expressions within the PythonSignature struct; this makes the code for rendering these in text signatures and introspection data slightly cleaner.

@davidhewitt davidhewitt added the CI-skip-changelog Skip checking changelog entry label Dec 5, 2025
Copy link
Contributor

@Icxolu Icxolu left a comment

Choose a reason for hiding this comment

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

Nice cleanup, this does look easier to follow.

@Icxolu Icxolu added this pull request to the merge queue Dec 5, 2025
Merged via the queue into PyO3:main with commit e8e5a50 Dec 5, 2025
43 checks passed
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