Add 'all' helper

This commit is contained in:
Romain Thomas
2025-08-08 21:20:52 +02:00
parent db6074d00e
commit 19eefd9e08
2 changed files with 10 additions and 1 deletions
@@ -25,7 +25,11 @@ void create<ParserConfig>(nb::module_& m) {
.def(nb::init<>())
.def_prop_ro_static("default_conf",
[] (const nb::object& /* self */) { return ParserConfig::default_conf(); },
"Default configuration"_doc);
"Default configuration"_doc)
.def_prop_ro_static("all",
[] (const nb::object& /* self */) { return ParserConfig::all(); },
"All parsing options enabled"_doc);
}