sandbox/utils.py
def parse_save(config: dict) -> bool:
    """Check the validity of 'save' in the request and return it, returns False if it is not
    present."""
    if "save" in config:
        if not isinstance(config["save"], bool):
            raise HTTPExceptions.BAD_REQUEST.with_content(
                f'save must be a boolean, not {type(config["save"])}')
        return config["save"]
    return False
Check the validity of 'save' in the request and return it, returns False if it is not
    present.
Check the validity of 'save' in the request and return it, returns False if it is not
present.
Check the validity of ' save ' in the request and return it returns False if it is not present .
def parse_save(config: dict) -> bool:
    if "save" in config:
        if not isinstance(config["save"], bool):
            raise HTTPExceptions.BAD_REQUEST.with_content(
                f'save must be a boolean, not {type(config["save"])}')
        return config["save"]
    return False
def parse_save ( config : dict ) -> bool : if "save" in config : if not isinstance ( config [ "save" ] , bool ) : raise HTTPExceptions . BAD_REQUEST . with_content ( f'save must be a boolean, not {type(config["save"])}' ) return config [ "save" ] return False
Check the validity of 'save' in the request and return it, returns False if it is not
present.
Check the validity of ' save ' in the request and return it returns False if it is not present .
"""Check the validity of 'save' in the request and return it, returns False if it is not
    present."""
config
dict