
    b?1i{                     F    d Z ddlmZ ddlmZ eddddededefd	       Zy
)zLength.   )between)	validator    min_valmax_valvaluer   r   c               8    | rt        t        |       ||      S dS )a{  Return whether or not the length of given string is within a specified range.

    Examples:
        >>> length('something', min_val=2)
        # Output: True
        >>> length('something', min_val=9, max_val=9)
        # Output: True
        >>> length('something', max_val=5)
        # Output: ValidationError(func=length, ...)

    Args:
        value:
            The string to validate.
        min_val:
            The minimum required length of the string. If not provided,
            minimum length will not be checked.
        max_val:
            The maximum length of the string. If not provided,
            maximum length will not be checked.

    Returns:
        (Literal[True]):
            If `len(value)` is in between the given conditions.
        (ValidationError):
            If `len(value)` is not in between the given conditions.

    > *New in version 0.2.0*.
    r   F)r   len)r	   r   r   s      [/home/www/therecruiter.miabetepe.com/venv/lib/python3.12/site-packages/validators/length.pylengthr      s     < EJ73u:w@TuT    N)__doc__r   utilsr   strintr    r   r   <module>r      sC       ,-a U# Uc U U Ur   