What I have in an external library:
# external package content
class Foo:
def func(): ...
class Bar(Foo):
def func():
super().func()
What I need in my code:
from external_library import Bar
class MyOwnCustomFoo:
def func(): ...
# Do some magic here to replace a parent class with another class without keeping the old parent
# Class name can be not 'Bar', but the class must have all 'Bar' attributes
class Bar(MyOwnCustomFoo):
def func():
super().func()
Goals I need to achieve:
- I must have all
Bar
methods without copy/pasting them. Bar
must inherit from my own class, not from another one.