diff --git a/bindings/python/pyproject.toml b/bindings/python/pyproject.toml index b86b237..209bda9 100644 --- a/bindings/python/pyproject.toml +++ b/bindings/python/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "ironcalc" -version = "0.5.6" +version = "0.5.7" description = "Create, edit and evaluate Excel spreadsheets" requires-python = ">=3.10" keywords = [ diff --git a/bindings/python/src/lib.rs b/bindings/python/src/lib.rs index 2adc201..51af9e2 100644 --- a/bindings/python/src/lib.rs +++ b/bindings/python/src/lib.rs @@ -1,7 +1,7 @@ use pyo3::exceptions::PyException; use pyo3::{create_exception, prelude::*, wrap_pyfunction}; -use types::{PySheetProperty, PyStyle}; +use types::{PyCellType, PySheetProperty, PyStyle}; use xlsx::base::types::{Style, Workbook}; use xlsx::base::{Model, UserModel}; @@ -10,8 +10,6 @@ use xlsx::import; mod types; -use crate::types::PyCellType; - create_exception!(_ironcalc, WorkbookError, PyException); #[pyclass] @@ -309,7 +307,7 @@ pub fn load_from_icalc(file_name: &str) -> PyResult { Ok(PyModel { model }) } -/// Loads a function from bytes +/// Loads a model from bytes /// This function expects the bytes to be in the internal binary ic format /// which is the same format used by the `save_to_icalc` function. #[pyfunction]