mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-39499 Fix __call__ resolve issue for cases when no interpreter is selected
GitOrigin-RevId: 9442be94e7a1097d604e94f384ee023b3ff72a57
This commit is contained in:
committed by
intellij-monorepo-bot
parent
504b4e9b9a
commit
d0e04761d7
@@ -172,6 +172,7 @@ public class PyCallExpressionHelper {
|
||||
@NotNull PyResolveContext resolveContext) {
|
||||
return PyTypeUtil.toStream(callableTypes)
|
||||
.select(PyClassLikeType.class)
|
||||
.filter(type -> !type.isDefinition())
|
||||
.map(type -> type.resolveMember(PyNames.CALL, call, AccessDirection.READ, resolveContext, true))
|
||||
.nonNull()
|
||||
.flatMap(list -> StreamEx.of(list).map(RatedResolveResult::getElement).nonNull())
|
||||
|
||||
Reference in New Issue
Block a user