PY-31795 Don't suggest removing parentheses when there is no expression inside

This commit is contained in:
Mikhail Golubev
2018-09-24 21:02:03 +03:00
parent 0ebde2269f
commit 2289223414
8 changed files with 30 additions and 6 deletions

View File

@@ -0,0 +1 @@
if <caret>(<EOLError descr="Indent expected"></EOLError><EOLError descr="')' expected"></EOLError>

View File

@@ -0,0 +1,7 @@
def pycharm_hanger_method(a, b):
if(<error descr="Unexpected expression syntax">!m_<caret>isReverse</error>)<error descr="Colon expected">{
m_startPoint = startPoint
} else {
m_endPoint = startPoint
}</error>

View File

@@ -0,0 +1 @@
(<caret>((42)))