def check_is_latest_version_in_background(current_version: str) -> None:
    """Checks if the current version is the latest version in a background thread."""

    def _check_version_in_background(current_version: str) -> None:
        try:
            is_latest_version(current_version=current_version)
        except Exception:
            # Ignore failed check.
            pass

    thread = Thread(
        target=_check_version_in_background,
        kwargs=dict(current_version=current_version),
        daemon=True,
    )
    thread.start()
Checks if the current version is the latest version in a background thread.
lightly/api/_version_checking.py