MCVE:
Rust side:
#[derive(Deserialize)]
struct Foo {
#[serde(default)]
foo: bool,
}
python side:
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:
|
seed.deserialize(&mut Depythonizer::from_object(&item)) |
If that's the case I can look into it open PR with the fix.
MCVE:
Rust side:
python side:
depythonize::<Foo>(...)will fail withunexpected 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:
pythonize/src/de.rs
Line 450 in 4491cdb
If that's the case I can look into it open PR with the fix.