src/json_analysis.py
def check_same_type(func):
    """
    Check wrapper for debugging
    last two args should share same type
    :param func:
    :return:
    """

    def inner(*args, **kwargs):
        if DEBUG:
            assert type(args[-1]) == type(args[-2])
        return func(*args, **kwargs)

    return inner

    Check wrapper for debugging
    last two args should share same type
    :param func:
    :return:
    
Check wrapper for debugging
last two args should share same type
Check wrapper for debugging last two args should share same type
def check_same_type(func):
    def inner(*args, **kwargs):
        if DEBUG:
            assert type(args[-1]) == type(args[-2])
        return func(*args, **kwargs)
    return inner
def check_same_type ( func ) : def inner ( * args , ** kwargs ) : if DEBUG : assert type ( args [ - 1 ] ) == type ( args [ - 2 ] ) return func ( * args , ** kwargs ) return inner
Check wrapper for debugging
last two args should share same type
Check wrapper for debugging last two args should share same type
"""
    Check wrapper for debugging
    last two args should share same type
    :param func:
    :return:
    """
None
func
None