def is_subclass(o, bases):
    try:
        return _issubclass(o, bases)
    except TypeError:
        pass

    if not isinstance(o, type):
        return False
    if not isinstance(bases, tuple):
        return False

    bases = tuple(b for b in bases if isinstance(b, type))
    return _issubclass(o, bases)
A helper function to complete a function documentation with return and
dataset/ETHPy150Open shazow/unstdlib.py/unstdlib/standard/type_.py/is_subclass--crossover with--dataset/ETHPy150Open openstack/wsme/wsmeext/sphinxext.py/document_function