I'm building some code from a stylesheet, but I also want to have the ability to add a custom class in python. However, sometimes, the custom class won't exist. For example, I have two classes: foo_base, and foo_custom. I want to define a class foo that can extend both classes, or just foo_base if foo_custom doesn't exist
try:
def foo(foo_base, foo_custom):
except:
def foo(foo_base):
...
def __init__(self):
...
Hopefully that makes sense. Essentially, I want to extend the class if it exists.
Thanks!