FIX: Make copilot happy
Oh wait, that's a thing now?
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
07854f1593
commit
71d6a3d66c
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "ironcalc"
|
name = "ironcalc"
|
||||||
version = "0.5.6"
|
version = "0.5.7"
|
||||||
description = "Create, edit and evaluate Excel spreadsheets"
|
description = "Create, edit and evaluate Excel spreadsheets"
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
keywords = [
|
keywords = [
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
use pyo3::exceptions::PyException;
|
use pyo3::exceptions::PyException;
|
||||||
use pyo3::{create_exception, prelude::*, wrap_pyfunction};
|
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::types::{Style, Workbook};
|
||||||
use xlsx::base::{Model, UserModel};
|
use xlsx::base::{Model, UserModel};
|
||||||
|
|
||||||
@@ -10,8 +10,6 @@ use xlsx::import;
|
|||||||
|
|
||||||
mod types;
|
mod types;
|
||||||
|
|
||||||
use crate::types::PyCellType;
|
|
||||||
|
|
||||||
create_exception!(_ironcalc, WorkbookError, PyException);
|
create_exception!(_ironcalc, WorkbookError, PyException);
|
||||||
|
|
||||||
#[pyclass]
|
#[pyclass]
|
||||||
@@ -309,7 +307,7 @@ pub fn load_from_icalc(file_name: &str) -> PyResult<PyModel> {
|
|||||||
Ok(PyModel { model })
|
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
|
/// 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.
|
/// which is the same format used by the `save_to_icalc` function.
|
||||||
#[pyfunction]
|
#[pyfunction]
|
||||||
|
|||||||
Reference in New Issue
Block a user