diff --git a/python-impl/src/main/java/com/jetbrains/python/impl/inspections/unresolvedReference/PyUnresolvedReferencesInspection.java b/python-impl/src/main/java/com/jetbrains/python/impl/inspections/unresolvedReference/PyUnresolvedReferencesInspection.java index 231e0cf0..1ebaa348 100644 --- a/python-impl/src/main/java/com/jetbrains/python/impl/inspections/unresolvedReference/PyUnresolvedReferencesInspection.java +++ b/python-impl/src/main/java/com/jetbrains/python/impl/inspections/unresolvedReference/PyUnresolvedReferencesInspection.java @@ -558,10 +558,10 @@ else if (canonicalName.equals(ignored)) { // TODO: mark the node so that future references pointing to it won't result in a error, but in a warning } } - if (reference instanceof PsiReferenceEx referenceEx && description == LocalizeValue.empty()) { + if (reference instanceof PsiReferenceEx referenceEx && description.isEmpty()) { description = LocalizeValue.localizeTODO(referenceEx.getUnresolvedDescription()); } - if (description == LocalizeValue.empty()) { + if (description.isEmpty()) { boolean markedQualified = false; if (element instanceof PyQualifiedExpression) { // TODO: Add __qualname__ for Python 3.3 to the skeleton of , introduce a pseudo-class skeleton for