kitir/utils.py
def is_same_class_or_subclass(target, main_class):
    """
    checks if target is the same class or a subclass of main_class
    :param target:
    :param main_class:
    :return:
    """
    return isinstance(target, main_class) or issubclass(target.__class__, main_class)

    checks if target is the same class or a subclass of main_class
    :param target:
    :param main_class:
    :return:
    
checks if target is the same class or a subclass of main_class
checks if target is the same class or a subclass of main_class
def is_same_class_or_subclass(target, main_class):
    return isinstance(target, main_class) or issubclass(target.__class__, main_class)
def is_same_class_or_subclass ( target , main_class ) : return isinstance ( target , main_class ) or issubclass ( target . __class__ , main_class )
checks if target is the same class or a subclass of main_class
checks if target is the same class or a subclass of main_class
"""
    checks if target is the same class or a subclass of main_class
    :param target:
    :param main_class:
    :return:
    """
None
target
None
main_class
None