def load_history() -> list[Path | URL]:
    """Load the history.

    Returns:
        The history.
    """
    return (
        [
            URL(location) if is_likely_url(location) else Path(location)
            for location in loads(history.read_text())
        ]
        if (history := history_file()).exists()
        else []
    )
Load the history.

    Returns:
        The history.
    
frogmouth/data/history.py