mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 15:41:26 +07:00
PY-84972 Fix NPE in PyInvalidCastInspection
Mark PyWithAncestors.getAncestorTypes return type as @Nullable GitOrigin-RevId: fb7cbbebfac371b21456711087f82fbdaf21673c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8495b2b110
commit
53f9f2ef04
@@ -19,6 +19,7 @@ import com.jetbrains.python.ast.PyAstWithAncestors;
|
||||
import com.jetbrains.python.psi.types.PyClassLikeType;
|
||||
import com.jetbrains.python.psi.types.TypeEvalContext;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -32,5 +33,5 @@ public interface PyWithAncestors extends PyAstWithAncestors {
|
||||
* Returns types of all ancestors from the hierarchy.
|
||||
*/
|
||||
@NotNull
|
||||
List<PyClassLikeType> getAncestorTypes(@NotNull TypeEvalContext context);
|
||||
List<@Nullable PyClassLikeType> getAncestorTypes(@NotNull TypeEvalContext context);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user