Merge pull request #2094 from yambati03/update-wrap-174

Update wrap
release/4.3a0
Frank Dellaert 2025-04-16 18:33:21 -04:00 committed by GitHub
commit 7f34599744
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -58,7 +58,7 @@ class XMLDocParser:
# Extract the docs for the function that matches cpp_class.cpp_method(*method_args_names).
return self.get_formatted_docstring(member_defs[documenting_index],
ignored_params)
ignored_params) if member_defs else ""
def get_member_defs(self, xml_folder: str, cpp_class: str,
cpp_method: str):
@ -95,7 +95,7 @@ class XMLDocParser:
return ""
# Create the path to the file with the documentation for cpp_class.
xml_class_file = xml_folder_path / class_index.attrib['refid'] + '.xml'
xml_class_file = xml_folder_path / f"{class_index.attrib['refid']}.xml"
# Parse the class file
class_tree = self.parse_xml(xml_class_file)

View File

@ -201,3 +201,5 @@ public:
private:
T *m_ptr;
};
#endif /* __OBJECT_H */