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

Mention comment non-processing in documentation #2306

Merged
merged 3 commits into from
Jun 8, 2021

Conversation

felix-hilden
Copy link
Collaborator

Closes #1017: This PR adds a short section discussing the non-processing of docstrings besides spacing improvements, mentions comment moving and links to the AST equivalence discussion. I also added a simple spacing test for good measure.

skip news? Anything to add or improve?

@JelleZijlstra JelleZijlstra added the skip news Pull requests that don't need a changelog entry. label Jun 4, 2021
Copy link
Collaborator

@ichard26 ichard26 left a comment

Choose a reason for hiding this comment

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

Looking good!

I was going to suggest adding how Black tries extra hard for certain pragma comments to avoiding them, but I ended up deciding against it because it's not a guarantee so not exactly useful to readers :P (also it's mentioned in the linked AST safety section anyway)

Thanks a million!

@ichard26 ichard26 merged commit a9eab85 into psf:main Jun 8, 2021
@felix-hilden felix-hilden deleted the docs-for-comment-nonprocessing branch June 9, 2021 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news Pull requests that don't need a changelog entry.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Black's behavior with comments is not described in the style guide
3 participants