mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
Fix typing
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user