Skip to content

Commit e259c86

Browse files
committed
fix(langserver): generate libdoc spec generation for RFW 7
1 parent 0020ddf commit e259c86

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/robot/src/robotcode/robot/diagnostics/library_doc.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1941,8 +1941,9 @@ def get_args_to_process(libdoc_name: str, kw_name: str) -> Any:
19411941
def _yield_type_info(info: TypeInfo) -> Iterable[TypeInfo]:
19421942
if not info.is_union:
19431943
yield info
1944-
for nested in info.nested:
1945-
yield from _yield_type_info(nested)
1944+
if info.nested:
1945+
for nested in info.nested:
1946+
yield from _yield_type_info(nested)
19461947

19471948
def _get_type_docs(keywords: List[Any], custom_converters: List[Any]) -> Set[RobotTypeDoc]:
19481949
type_docs: Dict[RobotTypeDoc, Set[str]] = {}

0 commit comments

Comments
 (0)