Python class inherit from PyO3 class #3624
-
Is it possible for a Python defined class to inherit from a PyO3 class? I've tried this and I receive an error indicating that, |
Beta Was this translation helpful? Give feedback.
Answered by
adamreichold
Dec 4, 2023
Replies: 1 comment 1 reply
-
You need to add |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jblindsay
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to add
#[pyclass(subclass)]
, c.f. https://pyo3.rs/v0.20.0/class#customizing-the-class