diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 5c3581a..e879121 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,17 +1,5 @@ # Frequenz Microgrid Component Graph Library Release Notes -## Summary - - - -## Upgrading - - - ## New Features - - -## Bug Fixes - - +- It is now possible to create subclasses of the `ComponentGraph` and `ComponentGraphConfig` classes from python. diff --git a/src/graph.rs b/src/graph.rs index 488d10b..f0811c5 100644 --- a/src/graph.rs +++ b/src/graph.rs @@ -16,7 +16,7 @@ use pyo3::{ types::{PyAny, PySet, PyType}, }; -#[pyclass] +#[pyclass(subclass)] #[derive(Clone, Default, Debug)] pub struct ComponentGraphConfig { config: cg::ComponentGraphConfig, @@ -49,7 +49,7 @@ impl ComponentGraphConfig { } } -#[pyclass] +#[pyclass(subclass)] pub struct ComponentGraph { graph: cg::ComponentGraph, }