def strip_suffix(s: str, suffix: str):
    """Remove a suffix from a string.

    :param s: string
    :param suffix: suffix to remove from ``s``
    """
    if s is not None and s.endswith(suffix):
        return s[: -len(suffix)]
    return s