We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d1f2af commit 6c2eefcCopy full SHA for 6c2eefc
1 file changed
libs/qec/python/bindings/py_decoding_config.cpp
@@ -29,6 +29,9 @@ void bindDecodingConfig(nb::module_ &mod) {
29
auto mod_cfg =
30
qecmod.def_submodule("config", "Realtime decoding configuration");
31
32
+ // Allow Python None to clear std::optional<T> fields.
33
+ const auto setter_accepts_none = nb::for_setter(nb::arg("value").none());
34
+
35
// srelay_bp_config
36
nb::class_<config::srelay_bp_config>(mod_cfg, "srelay_bp_config",
37
"Relay-BP decoder configuration.")
0 commit comments