False negative with statement ending with parens
See original GitHub issueif (foo and
bar()):
pass
I expect to be rewritten to
if (
foo and
bar()
):
pass
But I imagine the same code that prevents this from being rewritten is firing:
foo('bar {}'.format(
'baz',
))
which I don’t think should be rewritten.
Need to come up with a more clever heuristic here.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Different Results With Parentheses and Variable Placement in ...
I was under the impression that the placement of the variable in this conditional if statement didn't matter if I was using the...
Read more >Logical Connectives
A statement is a declarative sentence that can be either true or false. Remark. Many real proofs contain things which aren't really statements...
Read more >What is the logical negation symbol? - TechTarget
The logical negation symbol is used in Boolean algebra to indicate that the truth value of the statement that follows is reversed. Learn...
Read more >Check if given Parentheses expression is balanced or not
If Count becomes negative at any point, then expression is said to be not balanced, so mark Flag as false and break from...
Read more >A Study of False-Positive and False-Negative Error Rates in ...
Conclusions: One of the goals of this project was determination of a false-negative rate for cartridge case comparisons.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Very sorry for my inattention. I did not notice that you are the author of the tool. 😃 Sorry one more time… And thank for the tool!
PyCharm Reformat Code works exactly that way i want https://www.jetbrains.com/help/pycharm/reformatting-source-code.html
ok