# Verify that we didn't ignore any important info by accident
parsed = parse_desc_internal(state, element)
- assert not parsed.templates and not parsed.params and not parsed.return_value
+ assert not parsed.templates and not parsed.params and not parsed.return_value and not parsed.return_values
assert not parsed.section # might be problematic
return parsed.parsed
# Verify that we didn't ignore any important info by accident
parsed = parse_desc_internal(state, element)
- assert not parsed.templates and not parsed.params and not parsed.return_value
+ assert not parsed.templates and not parsed.params and not parsed.return_value and not parsed.return_values
assert not parsed.section # might be problematic
return parsed.parsed, parsed.search_keywords, parsed.search_enum_values_as_keywords
# Verify that we didn't ignore any important info by accident
parsed = parse_desc_internal(state, element.find('detaileddescription'))
parsed.parsed += parse_desc(state, element.find('inbodydescription'))
- assert not parsed.templates and not parsed.params and not parsed.return_value
+ assert not parsed.templates and not parsed.params and not parsed.return_value and not parsed.return_values
assert not parsed.section # might be problematic
return (parsed.parsed, parsed.search_keywords, parsed.search_enum_values_as_keywords, parsed.is_deprecated)
def parse_enum_value_desc(state: State, element: ET.Element) -> str:
# Verify that we didn't ignore any important info by accident
parsed = parse_desc_internal(state, element.find('detaileddescription'))
- assert not parsed.templates and not parsed.params and not parsed.return_value
+ assert not parsed.templates and not parsed.params and not parsed.return_value and not parsed.return_values
assert not parsed.section # might be problematic
return (parsed.parsed, parsed.search_keywords, parsed.is_deprecated)
# Verify that we didn't ignore any important info by accident
parsed = parse_desc_internal(state, element.find('detaileddescription'))
parsed.parsed += parse_desc(state, element.find('inbodydescription'))
- assert not parsed.templates and not parsed.params and not parsed.return_value
+ assert not parsed.templates and not parsed.params and not parsed.return_value and not parsed.return_values
assert not parsed.section # might be problematic
return (parsed.parsed, parsed.search_keywords, parsed.is_deprecated)
def parse_toplevel_desc(state: State, element: ET.Element):
# Verify that we didn't ignore any important info by accident
parsed = parse_desc_internal(state, element)
- assert not parsed.return_value
+ assert not parsed.return_value and not parsed.return_values
if parsed.params:
logging.warning("{}: use @tparam instead of @param for documenting class templates, @param is ignored".format(state.current))
return (parsed.parsed, parsed.templates, parsed.section[2] if parsed.section else '', parsed.footer_navigation, parsed.example_navigation, parsed.search_keywords, parsed.is_deprecated)
# Verify that we didn't ignore any important info by accident
parsed = parse_desc_internal(state, element.find('detaileddescription'))
parsed.parsed += parse_desc(state, element.find('inbodydescription'))
- assert not parsed.params and not parsed.return_value
+ assert not parsed.params and not parsed.return_value and not parsed.return_values
assert not parsed.section # might be problematic
return (parsed.parsed, parsed.templates, parsed.search_keywords, parsed.is_deprecated)
parsed = parse_desc_internal(state, element.find('detaileddescription'))
parsed.parsed += parse_desc(state, element.find('inbodydescription'))
assert not parsed.templates
+ assert not parsed.return_values # might be problematic?
assert not parsed.section # might be problematic
return (parsed.parsed, parsed.params, parsed.return_value, parsed.search_keywords, parsed.is_deprecated)
# Verify that we didn't ignore any important info by accident
parsed = parse_desc_internal(state, element, trim=False)
- assert not parsed.templates and not parsed.params and not parsed.return_value
+ assert not parsed.templates and not parsed.params and not parsed.return_value and not parsed.return_values
assert not parsed.section
return parsed.parsed