Fix broken python API doc for Android formats

This commit is contained in:
Dongdong Zhang
2021-09-23 13:29:01 +00:00
committed by GitHub
parent c5e168a560
commit f619864eca
5 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -28,13 +28,13 @@ void create<Parser>(py::module& m) {
// Parser (Parser)
m.def("parse",
static_cast<std::unique_ptr<File> (*) (const std::string&)>(&Parser::parse),
"Parse the given filename and return an " RST_CLASS_REF(lief.ART.File) " object"
"Parse the given filename and return an " RST_CLASS_REF(lief.ART.File) " object",
"filename"_a,
py::return_value_policy::take_ownership);
m.def("parse",
static_cast<std::unique_ptr<File> (*) (const std::vector<uint8_t>&, const std::string&)>(&Parser::parse),
"Parse the given raw data and return an " RST_CLASS_REF(lief.ART.File) " object\n\n"
"Parse the given raw data and return an " RST_CLASS_REF(lief.ART.File) " object",
"raw"_a, py::arg("name") = "",
py::return_value_policy::take_ownership);