Is there a function that takes a class as a parameter and returns True or False depending on the existence of its children classes? Can it be possible in principle?
class A:
    pass
class B(A):
    pass
has_children(A)  # should return True
has_children(B)  # should return False
I would like to know a solution without access to globals(), locals(), vars().
 
    