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