Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't parse doc attributes unnecessarily #2948

Merged
merged 1 commit into from
Feb 13, 2023

Conversation

davidhewitt
Copy link
Member

While working on #2866 I found that for all #[pymethods] we process the #[doc] attributes and build a Python docstring. However we don't always emit this doc - e.g. for class attributes and __dunder__ methods.

This is just a small adjustment to move the #[doc] processing slightly later in the macro code to avoid the wasted work. (It also helps for the #2866 implementation later.)

@davidhewitt davidhewitt added the CI-skip-changelog Skip checking changelog entry label Feb 13, 2023
@davidhewitt
Copy link
Member Author

bors r+

@bors
Copy link
Contributor

bors bot commented Feb 13, 2023

Build succeeded:

@bors bors bot merged commit 0c3bfd2 into PyO3:main Feb 13, 2023
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.

1 participant