I'm trying to make some kind of static inheritance happen. The code below prints "nope". I'm not sure how to explain myself but what I want is that class A uses B's method if it exists.
class A(object):
@staticmethod
def test():
print("nope")
@staticmethod
def test2():
__class__.test()
class B(A):
@staticmethod
def test():
print("It Works")
@staticmethod
def run():
__class__.test2()
if __name__ == "__main__":
B.run()