diff --git a/api/python/src/ELF/objects/pySymbol.cpp b/api/python/src/ELF/objects/pySymbol.cpp index 0aa5c79e79..53c090b600 100644 --- a/api/python/src/ELF/objects/pySymbol.cpp +++ b/api/python/src/ELF/objects/pySymbol.cpp @@ -139,7 +139,7 @@ void create(nb::module_& m) { nb::rv_policy::reference_internal) .def_prop_ro("section", - &Symbol::section, + nb::overload_cast<>(&Symbol::section), R"delim( Return the section (:class:`~lief.ELF.Section`) associated with this symbol if any. Otherwise, return None.