From ea6c121851258f264cf8c33871692577a608fd2e Mon Sep 17 00:00:00 2001 From: Yashas Ambati Date: Wed, 16 Apr 2025 15:36:10 -0400 Subject: [PATCH] Pull changes from wrap --- wrap/gtwrap/xml_parser/xml_parser.py | 4 ++-- wrap/pybind11/tests/object.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wrap/gtwrap/xml_parser/xml_parser.py b/wrap/gtwrap/xml_parser/xml_parser.py index 9920027ac..c73b80c4e 100644 --- a/wrap/gtwrap/xml_parser/xml_parser.py +++ b/wrap/gtwrap/xml_parser/xml_parser.py @@ -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) diff --git a/wrap/pybind11/tests/object.h b/wrap/pybind11/tests/object.h index 701354bc3..564dd4a7a 100644 --- a/wrap/pybind11/tests/object.h +++ b/wrap/pybind11/tests/object.h @@ -201,3 +201,5 @@ public: private: T *m_ptr; }; + +#endif /* __OBJECT_H */