(key: str)
return value
Return the value if it was set to a "truthy" string value, or None
    otherwise.
Return the value if it was set to a "truthy" string value, or None
    otherwise.
Return the value if it was set to a truthy string value or None otherwise .
def env_set_truthy(key: str) -> Optional[str]:
    """Return the value if it was set to a "truthy" string value, or None
    otherwise.
    """
    value = os.getenv(key)
    if not value or value.lower() in ('0', 'false', 'f'):
        return None
    return value
def env_set_truthy ( key : str ) -> Optional [ str ] : value = os . getenv ( key ) if not value or value . lower ( ) in ( '0' , 'false' , 'f' ) : return None return value