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 drop / split leading comments and decorators #158

Merged
merged 6 commits into from
Oct 16, 2022
Merged

Conversation

keewis
Copy link
Owner

@keewis keewis commented Oct 16, 2022

In #155, support for splitting doctest lines that actually are two separate statements / expressions chained together by semicolons was added. However, decorators are not contained in lines[lineno:end_lineno], and comments are not even contained in the AST. This makes sure both work fine.

  • Tests added
  • Passes pre-commit run --all-files
  • User visible changes (including notable bug fixes) are documented in changelog.rst

@keewis keewis merged commit 5397b12 into main Oct 16, 2022
@keewis keewis deleted the fix-unit-split branch October 16, 2022 12:51
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.

1 participant