We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddb0c82 commit 14a3dc9Copy full SHA for 14a3dc9
1 file changed
python/src/lib.rs
@@ -218,7 +218,7 @@ impl Context {
218
let mut prepared = Vec::new();
219
for (index, item) in records.try_iter()?.enumerate() {
220
let item = item?;
221
- let dict = item.cast::<PyDict>().map_err(|_| {
+ let dict = item.downcast::<PyDict>().map_err(|_| {
222
PyTypeError::new_err(format!("records[{index}] must be a dict"))
223
})?;
224
prepared.push(self.prepare_record_from_dict(dict, index)?);
0 commit comments