pub(crate) fn from_pydict(dict: &PyDict) -> Result<Self, PyErr> {
        let mut io = ImportObject::new();
        for (namespace_name, namespace_dict) in dict.into_iter() {
            let namespace_name = namespace_name.to_string();
            let namespace_dict = namespace_dict.downcast::<PyDict>()?;
            io.register(&namespace_name, namespace_dict)?;
        }
        Ok(io)
    }
/// Gets an `ImportObject` from a Python dictionary.
Gets an `ImportObject` from a Python dictionary.
Gets an ` ImportObject ` from a Python dictionary .
pub(crate) fn from_pydict(dict: &PyDict) -> Result<Self, PyErr> {
        let mut io = ImportObject::new();
        for (namespace_name, namespace_dict) in dict.into_iter() {
            let namespace_name = namespace_name.to_string();
            let namespace_dict = namespace_dict.downcast::<PyDict>()?;
            io.register(&namespace_name, namespace_dict)?;
        }
        Ok(io)
    }
pub ( crate ) fn from_pydict ( dict : & PyDict ) -> Result < Self , PyErr > { let mut io = ImportObject :: new ( ) ; for ( namespace_name , namespace_dict ) in dict . into_iter ( ) { let namespace_name = namespace_name . to_string ( ) ; let namespace_dict = namespace_dict . downcast :: < PyDict > ( ) ? ; io . register ( & namespace_name , namespace_dict ) ? ; } Ok ( io ) }
Gets an `ImportObject` from a Python dictionary.
Gets an ` ImportObject ` from a Python dictionary .
dict
&PyDict
dict
&PyDict