From 71d6a3d66ca763ee28c0eb722b50cdecfca0e9f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Hatcher?= Date: Sat, 2 Aug 2025 15:49:35 +0200 Subject: [PATCH] FIX: Make copilot happy Oh wait, that's a thing now? --- bindings/python/pyproject.toml | 2 +- bindings/python/src/lib.rs | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) 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]