Files
openide/python/python-psi-impl/resources/inspectionDescriptions/PyUnresolvedReferencesInspection.html
Petrandintellij-monorepo-bot 98560f5f19 [codeServer] Move PyUnresolvedReferencesInspection.html to python.psi.impl
The description file is shared by
com.intellij.codeServer.python.unresolvedReference.PyUnresolvedReferencesInspection
and
com.jetbrains.python.inspections.unresolvedReference.PyUnresolvedReferencesInspection

GitOrigin-RevId: bfcefccac775c0955b2bfac62adfa8f187e350ec
2024-12-11 20:51:44 +00:00

15 lines
669 B
HTML

<html>
<body>
<p>Reports references in your code that cannot be resolved.</p>
<p>In a dynamically typed language, this is possible in a limited number of cases. </p>
<p>If a reference type is unknown, then its attributes are not highlighted as unresolved even if you know that they should be:</p>
<pre><code>
def print_string(s):
print(s.abc())
</code></pre>
<p>In this code fragment <code>s</code> is always a string and <code>abc</code> should be highlighted as unresolved. However, <code>s</code>
type is inferred as <code>Any</code> and no warning is reported.</p>
<p>The IDE provides quick-fix actions to add missing references on-the-fly.</p>
</body>
</html>