Inheritance Issue - SuperClass object cannot be converted to SubClass #4548
Unanswered
riccardostokker
asked this question in
Questions
Replies: 1 comment
-
What do you mean by I'm not sure why taking a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone!
I've just started to use PyO3 for a library that I am developing. I want to define a
ThinFilmResistor
class that is extending aComponent
class. This is the code I wrote in order to achieve this:I get the following error message, and the
__str__
and__repr__
methods also do not seem to be working since the class is being printed as<builtins.ThinFilmResistor object at 0x0000021E1BBEDCF0>
Any help is greatly appreciated!
Riccardo
Beta Was this translation helpful? Give feedback.
All reactions