MCVE:
Rust side:
#[derive(Deserialize)]
struct Foo {
#[serde(default)]
foo: bool,
}
python side:
foo = {
"foo": None,
}
depythonize::<Foo>(...)
will fail with unexpected type: 'NoneType' object cannot be converted to '...'
. However {}
as input will work.
As far as I've looked, a check might be missing around here:
Line 450 in 4491cdb
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too