@@ -2573,7 +2573,7 @@ public async Task SequenceMultiply() {
25732573 var analysis = await server . OpenDefaultDocumentAndGetAnalysisAsync ( text ) ;
25742574 analysis . Should ( ) . HaveVariable ( "y" ) . WithDescription ( "tuple" )
25752575 . And . HaveVariable ( "y1" ) . WithDescription ( "tuple[int, int, int]" )
2576- . And . HaveVariable ( "oar" ) . WithDescription ( "list[int]" )
2576+ . And . HaveVariable ( "oar" ) . WithDescription ( "list[int, int, int ]" )
25772577 . And . HaveVariable ( "oar2" ) . WithDescription ( "list" ) ;
25782578 }
25792579 }
@@ -2597,11 +2597,29 @@ public async Task SequenceMultiply_2() {
25972597 var analysis = await server . OpenDefaultDocumentAndGetAnalysisAsync ( text ) ;
25982598 analysis . Should ( ) . HaveVariable ( "y" ) . WithDescription ( "tuple" )
25992599 . And . HaveVariable ( "y1" ) . WithDescription ( "tuple[int, int, int]" )
2600- . And . HaveVariable ( "oar" ) . WithDescription ( "list[int]" )
2600+ . And . HaveVariable ( "oar" ) . WithDescription ( "list[int, int, int ]" )
26012601 . And . HaveVariable ( "oar2" ) . WithDescription ( "list" ) ;
26022602 }
26032603 }
26042604
2605+ [ TestMethod , Priority ( 0 ) ]
2606+ public async Task InterableTypesDescription_Long ( ) {
2607+ var text = @"
2608+ x1 = (1,'2',3,4.,5,6,7,8)
2609+ y1 = 100 * x1
2610+
2611+ fob = [1,2,'3',4,5.,6,7,8]
2612+ oar = 100 * fob
2613+ " ;
2614+
2615+ using ( var server = await CreateServerAsync ( PythonVersions . LatestAvailable2X ) ) {
2616+ var analysis = await server . OpenDefaultDocumentAndGetAnalysisAsync ( text ) ;
2617+ analysis . Should ( )
2618+ . HaveVariable ( "y1" ) . WithDescription ( "tuple[int, str, int, float, int, int, ...]" )
2619+ . And . HaveVariable ( "oar" ) . WithDescription ( "list[int, int, str, int, float, int, ...]" ) ;
2620+ }
2621+ }
2622+
26052623 [ TestMethod , Priority ( 0 ) ]
26062624 public async Task SequenceContains ( ) {
26072625 var text = @"
@@ -5426,7 +5444,9 @@ import fob.y as y
54265444 await server . SendDidOpenTextDocument ( uriSrc2 , src2 ) ;
54275445 await server . SendDidOpenTextDocument ( uriSrc3 , src3 ) ;
54285446
5447+ await server . GetAnalysisAsync ( uriSrc1 ) ;
54295448 var analysis = await server . GetAnalysisAsync ( uriSrc2 ) ;
5449+
54305450 analysis . Should ( ) . HaveVariable ( "y" ) . WithDescription ( "Python module fob.y" )
54315451 . And . HaveVariable ( "abc" ) . OfType ( BuiltinTypeId . Int ) ;
54325452 }
0 commit comments