Currently, from_pyobject panics on input with a type unknown to the library:
|
unreachable!("Unsupported type: {}", self.0.get_type()); |
This prevents users from using serde_pyobject::from_pyobject in FromPyObject and/or other casting function, so it should return Err instead of panicking by unreachable!.