(value: Any)
return bool(value)
Converts truthy and falsey values, including falsey strings, to
    boolean.

    >>> to_boolean(1)
    True
    >>> to_boolean('No')
    False
Converts truthy and falsey values, including falsey strings, to
    boolean.
Converts truthy and falsey values including falsey strings to boolean .
def to_boolean(value: Any) -> bool:
    """
    Converts truthy and falsey values, including falsey strings, to
    boolean.

    >>> to_boolean(1)
    True
    >>> to_boolean('No')
    False

    """
    if isinstance(value, str) and value.lower() in FALSE_STRINGS:
        return False
    return bool(value)
def to_boolean ( value : Any ) -> bool : if isinstance ( value , str ) and value . lower ( ) in FALSE_STRINGS : return False return bool ( value )