mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 20:41:22 +07:00
PY-36416 Don't wrap return types of overridden async methods in Coroutine twice
(cherry picked from commit 48d01bedeb62d1a232704e58a3f39e3a7d543d2d) IJ-CR-149694 GitOrigin-RevId: e431744a18f2b9d2976de7ee12888961e22f2298
This commit is contained in:
committed by
intellij-monorepo-bot
parent
40f8f30b67
commit
fae8df34f4
@@ -90,7 +90,9 @@ private fun getReturnTypeFromSupertype(function: PyFunction, context: TypeEvalCo
|
||||
val superFunctionAnnotation = getReturnTypeAnnotation(overriddenFunction, context)
|
||||
if (superFunctionAnnotation != null) {
|
||||
val typeRef = PyTypingTypeProvider.getType(superFunctionAnnotation, context)
|
||||
typeRef?.let { return Ref.create(PyTypingTypeProvider.toAsyncIfNeeded(function, it.get())) }
|
||||
if (typeRef != null) {
|
||||
return typeRef
|
||||
}
|
||||
}
|
||||
}
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user