Skip to content

Commit

Permalink
Merge pull request #73 from hexedtech/fix/python/getter-for-nested-el…
Browse files Browse the repository at this point in the history
…ements

adds getters for complex nested elements.
  • Loading branch information
ghyatzo authored Nov 20, 2024
2 parents 293bdcd + 28e04ab commit f724215
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/py/src/codemp/codemp.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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): ...
Expand Down
4 changes: 2 additions & 2 deletions src/api/cursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit f724215

Please sign in to comment.