from pathlib import Path


def _get_old_file(new_file: Path) -> Path:
    """Return the same file without the .new suffix"""
    assert new_file.name.endswith('.new')  # noqa
    return new_file.with_name(new_file.stem)