PY-16412 Fixed handling of callable types in the intention

by adding an alternative implementation of TypeVisitor that strives
to render a type in PEP 484 compatible format.
This commit is contained in:
Mikhail Golubev
2018-02-05 21:41:59 +03:00
committed by Andrey Vlasovskikh
parent 12f9f91627
commit d1ae008593
9 changed files with 138 additions and 37 deletions
@@ -223,6 +223,10 @@ public class PyAnnotateVariableTypeIntentionTest extends PyIntentionTestCase {
doAnnotationTest();
}
public void testAnnotationNotPossibleForStructuralTypeInCallable() {
doAnnotationTest();
}
public void testAnnotationCallableType() {
doAnnotationTest();
}