diff options
Diffstat (limited to 'python/src/com/jetbrains/python/inspections/unresolvedReference/PyUnresolvedReferencesInspection.java')
-rw-r--r-- | python/src/com/jetbrains/python/inspections/unresolvedReference/PyUnresolvedReferencesInspection.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/python/src/com/jetbrains/python/inspections/unresolvedReference/PyUnresolvedReferencesInspection.java b/python/src/com/jetbrains/python/inspections/unresolvedReference/PyUnresolvedReferencesInspection.java index fac391abdff7..c0fb3c1d620d 100644 --- a/python/src/com/jetbrains/python/inspections/unresolvedReference/PyUnresolvedReferencesInspection.java +++ b/python/src/com/jetbrains/python/inspections/unresolvedReference/PyUnresolvedReferencesInspection.java @@ -464,7 +464,9 @@ public class PyUnresolvedReferencesInspection extends PyInspection { } if (expr.isQualified()) { final PyClassTypeImpl object_type = (PyClassTypeImpl)PyBuiltinCache.getInstance(node).getObjectType(); - if ((object_type != null) && object_type.getPossibleInstanceMembers().contains(refName)) return; + if ((object_type != null) && object_type.getPossibleInstanceMembers().contains(refName)){ + return; + } } else { if (PyUnreachableCodeInspection.hasAnyInterruptedControlFlowPaths(expr)) { @@ -494,7 +496,9 @@ public class PyUnresolvedReferencesInspection extends PyInspection { } // unqualified: // may be module's - if (PyModuleType.getPossibleInstanceMembers().contains(refName)) return; + if (PyModuleType.getPossibleInstanceMembers().contains(refName)) { + return; + } // may be a "try: import ..."; not an error not to resolve if (( PsiTreeUtil.getParentOfType( |