class Dependabot::Uv::FileUpdater::LockFileUpdater
def updated_pyproject_content
def updated_pyproject_content content = pyproject.content return content unless file_changed?(pyproject) updated_content = content.dup dependency.requirements.zip(dependency.previous_requirements).each do |new_r, old_r| next unless new_r[:file] == pyproject.name && old_r[:file] == pyproject.name updated_content = replace_dep(dependency, updated_content, new_r, old_r) end raise DependencyFileContentNotChanged, "Content did not change!" if content == updated_content updated_content end