def to_str(obj):
    if type(obj) in (list, tuple):
        string = "/".join([item.__name__ for item in obj])
    else:
        string = obj.__name__
    return string
Custom convert object to string representation.
dataset/ETHPy150Open Relrin/aiorest-ws/aiorest_ws/utils/validators.py/to_str