src/streamlink/plugin/api/validate.py
def length(length):
    """Checks value for minimum length using len()."""
    def min_len(value):
        if not len(value) >= length:
            raise ValueError(
                "Minimum length is {0} but value is {1}".format(length, len(value))
            )
        return True

    return min_len
def length(length):
    """Checks value for minimum length using len()."""
    def min_len(value):
        if not len(value) >= length:
            raise ValueError(
                "Minimum length is {0} but value is {1}".format(length, len(value))
            )
        return True

    return min_len
def length ( length ) : def min_len ( value ) : if not len ( value ) >= length : raise ValueError ( "Minimum length is {0} but value is {1}" . format ( length , len ( value ) ) ) return True return min_len
Checks value for minimum length using len().
Checks value for minimum length using len () .