PY-20744 Warn about illegal targets for variable annotations
[idea/community.git] / python / src / com / jetbrains / python / validation / PyAnnotatingVisitor.java
index d5d1964b0faab6a7e3474c1c3b6488527037da70..150bebc9a1c67009d306811e35dfccbeae28fed2 100644 (file)
@@ -33,6 +33,7 @@ public class PyAnnotatingVisitor implements Annotator {
   private static final Logger LOGGER = Logger.getInstance(PyAnnotatingVisitor.class.getName());
   private static final Class[] ANNOTATOR_CLASSES = new Class[] {
     AssignTargetAnnotator.class,
+    TypeAnnotationTargetAnnotator.class,
     ParameterListAnnotator.class,
     HighlightingAnnotator.class,
     ReturnAnnotator.class,