diff --git a/dist/py/src/codemp/codemp.pyi b/dist/py/src/codemp/codemp.pyi index 94271ff..aef51fb 100644 --- a/dist/py/src/codemp/codemp.pyi +++ b/dist/py/src/codemp/codemp.pyi @@ -91,8 +91,8 @@ class TextChange: Editor agnostic representation of a text change, it translate between internal codemp text operations and editor operations """ - start: int - end: int + start_idx: int + end_idx: int content: str def __new__(cls, *, start: int, end: int, content: str, **kwargs): ... diff --git a/src/api/cursor.rs b/src/api/cursor.rs index 6a96b42..42dcad3 100644 --- a/src/api/cursor.rs +++ b/src/api/cursor.rs @@ -7,7 +7,7 @@ use pyo3::prelude::*; /// An event that occurred about a user's cursor. #[derive(Clone, Debug, Default)] #[cfg_attr(feature = "js", napi_derive::napi(object))] -#[cfg_attr(feature = "py", pyclass)] +#[cfg_attr(feature = "py", pyclass(get_all))] #[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))] // #[cfg_attr(feature = "py", pyo3(crate = "reexported::pyo3"))] pub struct Cursor { @@ -20,7 +20,7 @@ pub struct Cursor { /// A cursor selection span. #[derive(Clone, Debug, Default)] #[cfg_attr(feature = "js", napi_derive::napi(object))] -#[cfg_attr(feature = "py", pyclass)] +#[cfg_attr(feature = "py", pyclass(get_all))] #[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))] // #[cfg_attr(feature = "py", pyo3(crate = "reexported::pyo3"))] pub struct Selection {