Lysandros Nikolaou <[email protected]> added the comment:
Oh, this is a difficult one.
It's caused by GH-27506 that was recently added to produce better errors for
things like `print('hello' if something)`, where the correct syntax is
`print('hello' if something else 'hi').
This is going to have a lot of false positives though, especially in cases like
this, where an if statement immediately follows a line with unclosed
parentheses.
What do you think, Pablo? Should we maybe revert this?
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue44838>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com