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

Add DocstringRemover #197

Merged
merged 2 commits into from
Dec 3, 2023
Merged

Add DocstringRemover #197

merged 2 commits into from
Dec 3, 2023

Conversation

odashi
Copy link
Collaborator

@odashi odashi commented Dec 2, 2023

Overview

This change adds DocstringRemover transformer.

Details

DocstringRemover detects all Expr nodes with a str constant, and remove them from the AST.
Currently this transformer is applied only when the reduce_assignments flag is set.

References

Fix #196

@odashi odashi requested a review from ShigekiKarita December 2, 2023 22:59
@odashi odashi merged commit 2114923 into main Dec 3, 2023
12 checks passed
@odashi odashi deleted the docstring-remover branch December 3, 2023 22:21
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.

Function docstring and reduce_assignments enabled does not play nice
2 participants