Skip to content

Commit f850440

Browse files
committed
Allow Python subclassing of ComponentGraphConfig and ComponentGraph
Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 56c6fc7 commit f850440

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/graph.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use pyo3::{
1616
types::{PyAny, PySet, PyType},
1717
};
1818

19-
#[pyclass]
19+
#[pyclass(subclass)]
2020
#[derive(Clone, Default, Debug)]
2121
pub struct ComponentGraphConfig {
2222
config: cg::ComponentGraphConfig,
@@ -49,7 +49,7 @@ impl ComponentGraphConfig {
4949
}
5050
}
5151

52-
#[pyclass]
52+
#[pyclass(subclass)]
5353
pub struct ComponentGraph {
5454
graph: cg::ComponentGraph<Component, Connection>,
5555
}

0 commit comments

Comments
 (0)