Merge branch 'master' into vlan/pyi
[idea/community.git] / python / src / com / jetbrains / python / psi / types / PyTypeChecker.java
index fd8320d1f93fe4c976153d1bcbccd1d3654f8011..930bdbadccd458af715bee734b307a17ce942583 100644 (file)
@@ -529,8 +529,8 @@ public class PyTypeChecker {
     resolved = ref.resolve();
     if (resolved instanceof PyTypedElement) {
       final PyType type = context.getType((PyTypedElement)resolved);
-      if (type instanceof PyFunctionTypeImpl) {
-        final PyCallable callable = ((PyFunctionTypeImpl)type).getCallable();
+      if (type instanceof PyFunctionType) {
+        final PyCallable callable = ((PyFunctionType)type).getCallable();
         final PyParameter[] parameters = callable.getParameterList().getParameters();
         if (parameters.length == 2) {
           final PyNamedParameter param = parameters[1].getAsNamed();