From e500c55e10806aee8a49e86ab9a7344280ecdfe4 Mon Sep 17 00:00:00 2001 From: "Ilya.Kazakevich" Date: Wed, 28 Oct 2015 20:17:34 +0300 Subject: [PATCH] PY-16921 PyCustomType members resolve fix: convert mimic class to instance to allow instance fields resolving --- python/src/com/jetbrains/python/PyCustomType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/com/jetbrains/python/PyCustomType.java b/python/src/com/jetbrains/python/PyCustomType.java index bb1190539251..d01170f9d40f 100644 --- a/python/src/com/jetbrains/python/PyCustomType.java +++ b/python/src/com/jetbrains/python/PyCustomType.java @@ -112,7 +112,7 @@ public class PyCustomType implements PyClassLikeType { // Delegate calls to classes, we mimic but filter if filter is set. for (final PyClassLikeType typeToMimic : myTypesToMimic) { - final List results = typeToMimic.resolveMember(name, location, direction, resolveContext, inherited); + final List results = typeToMimic.toInstance().resolveMember(name, location, direction, resolveContext, inherited); if (results != null) { globalResult.addAll(Collections2.filter(results, new ResolveFilter())); }