@@ -1308,12 +1308,12 @@ async def complete_import() -> Optional[List[CompletionItem]]:
13081308 sep = text_before_position [last_separator_index ] if last_separator_index < len (text_before_position ) else ""
13091309
13101310 try :
1311- list = await self .namespace .imports_manager .complete_library_import (
1311+ complete_list = await self .namespace .imports_manager .complete_library_import (
13121312 first_part if first_part else None ,
13131313 str (self .document .uri .to_path ().parent ),
13141314 await self .namespace .get_resolvable_variables (nodes_at_position , position ),
13151315 )
1316- if not list :
1316+ if not complete_list :
13171317 return None
13181318 except (SystemExit , KeyboardInterrupt , asyncio .CancelledError ):
13191319 raise
@@ -1346,7 +1346,7 @@ async def complete_import() -> Optional[List[CompletionItem]]:
13461346 "name" : ((first_part + sep ) if first_part is not None else "" ) + e .label ,
13471347 },
13481348 )
1349- for e in list
1349+ for e in complete_list
13501350 ]
13511351
13521352 async def complete_arguments () -> Optional [List [CompletionItem ]]:
@@ -1414,10 +1414,9 @@ async def complete_arguments() -> Optional[List[CompletionItem]]:
14141414
14151415 try :
14161416 libdoc = await self .namespace .get_imported_library_libdoc (
1417- import_node .name , (), str ( self . document . uri . to_path (). parent )
1417+ import_node .name , import_node . args , import_node . alias
14181418 )
1419- if not list :
1420- return None
1419+
14211420 except (SystemExit , KeyboardInterrupt , asyncio .CancelledError ):
14221421 raise
14231422 except BaseException as e :
@@ -1542,12 +1541,12 @@ async def complete_ResourceImport( # noqa: N802
15421541 )
15431542
15441543 try :
1545- list = await self .namespace .imports_manager .complete_resource_import (
1544+ complete_list = await self .namespace .imports_manager .complete_resource_import (
15461545 first_part if first_part else None ,
15471546 str (self .document .uri .to_path ().parent ),
15481547 await self .namespace .get_resolvable_variables (nodes_at_position , position ),
15491548 )
1550- if not list :
1549+ if not complete_list :
15511550 return None
15521551 except (SystemExit , KeyboardInterrupt , asyncio .CancelledError ):
15531552 raise
@@ -1579,7 +1578,7 @@ async def complete_ResourceImport( # noqa: N802
15791578 "name" : ((first_part ) if first_part is not None else "" ) + e .label ,
15801579 },
15811580 )
1582- for e in list
1581+ for e in complete_list
15831582 ]
15841583
15851584 async def complete_VariablesImport ( # noqa: N802
@@ -1643,12 +1642,12 @@ async def complete_VariablesImport( # noqa: N802
16431642 )
16441643
16451644 try :
1646- list = await self .namespace .imports_manager .complete_variables_import (
1645+ complete_list = await self .namespace .imports_manager .complete_variables_import (
16471646 first_part if first_part else None ,
16481647 str (self .document .uri .to_path ().parent ),
16491648 await self .namespace .get_resolvable_variables (nodes_at_position , position ),
16501649 )
1651- if not list :
1650+ if not complete_list :
16521651 return None
16531652 except (SystemExit , KeyboardInterrupt , asyncio .CancelledError ):
16541653 raise
@@ -1680,7 +1679,7 @@ async def complete_VariablesImport( # noqa: N802
16801679 "name" : ((first_part ) if first_part is not None else "" ) + e .label ,
16811680 },
16821681 )
1683- for e in list
1682+ for e in complete_list
16841683 ]
16851684
16861685 async def _complete_KeywordCall_or_Fixture ( # noqa: N802
0 commit comments