Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix for at transform: bug #158

Closed
wants to merge 3 commits into from

Conversation

madeddy
Copy link
Contributor

@madeddy madeddy commented Dec 3, 2022

- prevents for "at" statements a false end of line colon if followed by a "at transform" line

# BUG: If there was a "at ..." stmt before a transform, a wrong colon was added.
# In tests worked this so far
if not wrote_colon and lineno is not None and not has_block:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's wrong what i did here:
My fix makes the wrong colon gone, but the real reason is the "at transform" in our current case is written 26 lines to late, even after its children if see this right. This causes the wrong colon on the end of the line before it i guess.

I should probably make a issue for this.

@madeddy madeddy closed this Feb 13, 2024
@madeddy madeddy deleted the at_transform-fix branch February 13, 2024 20:18
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant