Skip to content

Commit

Permalink
Fix perspective-python object repr module
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Stein <[email protected]>
  • Loading branch information
texodus committed Nov 18, 2024
1 parent efec1b0 commit ff29934
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions rust/perspective-python/src/client/client_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use super::python::*;
use crate::py_err::ResultTClientErrorExt;
use crate::server::PySyncServer;

#[pyclass]
#[pyclass(module = "perspective")]
#[derive(Clone)]
pub struct ProxySession(perspective_client::ProxySession);

Expand Down Expand Up @@ -81,7 +81,7 @@ trait PyFutureExt: Future {
impl<F: Future> PyFutureExt for F {}

#[doc = crate::inherit_docs!("client.md")]
#[pyclass(subclass)]
#[pyclass(subclass, module = "perspective")]
pub struct Client(pub(crate) PyClient);

#[pymethods]
Expand Down Expand Up @@ -147,7 +147,7 @@ impl Client {
}

#[doc = crate::inherit_docs!("table.md")]
#[pyclass(subclass, name = "Table")]
#[pyclass(subclass, name = "Table", module = "perspective")]
pub struct Table(PyTable);

assert_table_api!(Table);
Expand Down Expand Up @@ -272,7 +272,7 @@ impl Table {
}

#[doc = crate::inherit_docs!("view.md")]
#[pyclass(subclass, name = "View")]
#[pyclass(subclass, name = "View", module = "perspective")]
pub struct View(PyView);

assert_view_api!(View);
Expand Down
4 changes: 2 additions & 2 deletions rust/perspective-python/src/server/server_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ use pyo3::types::{PyAny, PyBytes};

use crate::client::python::PyClient;

#[pyclass]
#[pyclass(module = "perspective")]
#[derive(Clone)]
pub struct PySyncSession {
session: Arc<RwLock<Option<LocalSession>>>,
}

#[pyclass(subclass)]
#[pyclass(subclass, module = "perspective")]
#[derive(Clone, Default)]
pub struct PySyncServer {
pub server: Server,
Expand Down

0 comments on commit ff29934

Please sign in to comment.