

def to_str(obj):
    'Custom convert object to string representation.'
    if (type(obj) in (list, tuple)):
        string = '/'.join([item.__name__ for item in obj])
    else:
        string = obj.__name__
    return string

dataset/ETHPy150Open Relrin/aiorest-ws/aiorest_ws/utils/validators.py to_str/original