-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
PT006 fix adds unneeded parenthesis #2918
Comments
Thanks :) |
Ohh interesting, because the expression is itself parenthesized already. Hmm... |
So, I was looking at the recent commit (abaf0a1) and thought of a similar approach in solving this problem. The indexer will collect all the ranges for a pair of parenthesis ( I'm not sure if you've any other solution in mind so just thought to share this. |
Actually, I've a better solution in mind, will try to fix it by tonight. |
Thanks, @dhruvmanila 👍 ../Frenck |
Another all-star contribution from @dhruvmanila :) |
Thanks for your kind words! Always happy to help wherever I can 😄 |
PT006 seems to add additional parenthesis in case the string is already wrapped in a parenthesis to split it into multiple lines.
Results in:
Expected:
The text was updated successfully, but these errors were encountered: