Files
openide/python/python-psi-impl/resources/inspectionDescriptions/PyStringFormatInspection.html
Louis Vignier 1869ec9da6 [codeInspection] Fix python inspection descriptions
GitOrigin-RevId: 56876a5dd073a06c3fcc92f63ed1f5674830bc25
2023-04-28 13:13:25 +00:00

19 lines
441 B
HTML

<html>
<body>
<p>Reports errors in string formatting operations.</p>
<p><b>Example 1:</b></p>
<pre><code>
"Hello {1}".format("people")
</code></pre>
<p><b>Example 2:</b></p>
<pre><code>
def bar():
return 1
"%s %s" % bar()
</code></pre>
<p>As a fix, you need to rewrite string formatting fragments to
adhere to the <a href="https://docs.python.org/3/library/string.html#format-string-syntax">formatting syntax</a>.</p>
</body>
</html>