mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed PY-7969 Replace + with string formatting operator: disable intention for expression with undefined types
This commit is contained in:
@@ -1 +1,4 @@
|
||||
def foo():
|
||||
return "foo"
|
||||
c = "string"
|
||||
"a%sf_str%s" % (foo(), c)
|
||||
@@ -1 +1,3 @@
|
||||
header = "header"
|
||||
value = "value"
|
||||
result += "%s : %s\n" % (header, value)
|
||||
@@ -1 +1,4 @@
|
||||
def foo():
|
||||
return "foo"
|
||||
|
||||
u'a%sf' % foo()
|
||||
@@ -1 +1,4 @@
|
||||
def foo():
|
||||
return "foo"
|
||||
c = "string"
|
||||
"a" + foo() <caret>+ "f" + "_str" + c
|
||||
@@ -1 +1,3 @@
|
||||
header = "header"
|
||||
value = "value"
|
||||
result += header<caret> + " : " + value + "\n"
|
||||
@@ -0,0 +1,3 @@
|
||||
def foo3(x, y, z):
|
||||
i = x + <caret>y + z
|
||||
return i
|
||||
@@ -1 +1,4 @@
|
||||
def foo():
|
||||
return "foo"
|
||||
|
||||
u'a' + foo() <caret>+ u'f'
|
||||
Reference in New Issue
Block a user