
    `                     0    d dl Z ddlmZ ed             ZdS )    N   )	validatorc                 d    | o.t          | t          j                   p|                                 S )a  
    Validate that given value is not a falsey value.

    This validator is based on `WTForms DataRequired validator`_.

    .. _WTForms DataRequired validator:
       https://github.com/wtforms/wtforms/blob/master/wtforms/validators.py

    Examples::

        >>> truthy(1)
        True

        >>> truthy('someone')
        True

        >>> truthy(0)
        ValidationFailure(func=truthy, args={'value': 0})

        >>> truthy('    ')
        ValidationFailure(func=truthy, args={'value': '    '})

        >>> truthy(False)
        ValidationFailure(func=truthy, args={'value': False})

        >>> truthy(None)
        ValidationFailure(func=truthy, args={'value': None})

    .. versionadded:: 0.2
    )
isinstancesixstring_typesstrip)values    1lib/python3.11/site-packages/validators/truthy.pytruthyr      s3    B 	 	Cs/00	0	AEKKMM    )r   utilsr   r    r   r   <module>r      sE    



       " " " " "r   