Skip to content

Commit

Permalink
fix(langserver): generate libdoc spec generation for RFW 7
Browse files Browse the repository at this point in the history
  • Loading branch information
d-biehl committed Jan 11, 2024
1 parent 0020ddf commit e259c86
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/robot/src/robotcode/robot/diagnostics/library_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1941,8 +1941,9 @@ def get_args_to_process(libdoc_name: str, kw_name: str) -> Any:
def _yield_type_info(info: TypeInfo) -> Iterable[TypeInfo]:
if not info.is_union:
yield info
for nested in info.nested:
yield from _yield_type_info(nested)
if info.nested:
for nested in info.nested:
yield from _yield_type_info(nested)

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

0 comments on commit e259c86

Please sign in to comment.