Fix typing

This commit is contained in:
Romain Thomas
2023-10-22 14:00:04 +02:00
parent c6db72896f
commit e5ef1da160
10 changed files with 66 additions and 106 deletions
+8 -7
View File
@@ -28,15 +28,16 @@
namespace LIEF::py {
struct search_result {
struct search_result : public nanobind::object {
LIEF_PY_DEFAULT_CTOR(search_result, nanobind::object);
LIEF_PY_DEFAULT_WRAPPER(search_result);
NB_OBJECT_DEFAULT(search_result, object, "Optional[int]", check)
static bool check(handle h) {
return true;
}
};
}
LIEF_PY_DEFAULT_NB_CASTER(LIEF::py::search_result, "Optional[int]")
namespace LIEF::py {
template<>
void create<Section>(nb::module_& m) {