diff --git a/python/src/com/jetbrains/python/codeInsight/stdlib/StdlibTypes2.properties b/python/src/com/jetbrains/python/codeInsight/stdlib/StdlibTypes2.properties index d8c1c0e07307..ed71ee8c45f7 100644 --- a/python/src/com/jetbrains/python/codeInsight/stdlib/StdlibTypes2.properties +++ b/python/src/com/jetbrains/python/codeInsight/stdlib/StdlibTypes2.properties @@ -1589,7 +1589,7 @@ math.frexp = \ math.fsum = \ :type iterable: collections.Iterable of float \n\ - :rtype: (float, int) \n\ + :rtype: float \n\ math.gamma = \ :type x: int or long or float \n\ diff --git a/python/src/com/jetbrains/python/inspections/PyExceptionInheritInspection.java b/python/src/com/jetbrains/python/inspections/PyExceptionInheritInspection.java index 7afd72321c86..71bb911cd2b7 100644 --- a/python/src/com/jetbrains/python/inspections/PyExceptionInheritInspection.java +++ b/python/src/com/jetbrains/python/inspections/PyExceptionInheritInspection.java @@ -48,7 +48,7 @@ public class PyExceptionInheritInspection extends PyInspection { if (psiElement instanceof PyClass) { PyClass aClass = (PyClass) psiElement; for (PyClassRef pyClass : aClass.iterateAncestors()) { - if ("Exception".equals(pyClass.getQualifiedName())) { + if ("Exception".equals(pyClass.getClassName())) { return; } }