diff --git a/plugins/org.python.pydev.ast/src/org/python/pydev/ast/codecompletion/revisited/AbstractASTManager.java b/plugins/org.python.pydev.ast/src/org/python/pydev/ast/codecompletion/revisited/AbstractASTManager.java index d80fb7b528..a9b5932118 100644 --- a/plugins/org.python.pydev.ast/src/org/python/pydev/ast/codecompletion/revisited/AbstractASTManager.java +++ b/plugins/org.python.pydev.ast/src/org/python/pydev/ast/codecompletion/revisited/AbstractASTManager.java @@ -1059,7 +1059,8 @@ public boolean isNodeTypingUnionSubscript(IModule module, Object node) { Subscript subscript = (Subscript) node; String rep = NodeUtils.getFullRepresentationString(subscript.value); if (rep != null && !rep.isBlank()) { - if (rep.equals("Union") || rep.endsWith(".Union")) { + if (rep.equals("Union") || rep.endsWith(".Union") || rep.equals("Annotated") + || rep.endsWith(".Annotated")) { return true; } }