class Dependabot::Uv::FileUpdater::RequirementFileUpdater
def fetch_updated_dependency_files
def fetch_updated_dependency_files previous_requirements = dependency&.previous_requirements || [] reqs = T.must(dependency).requirements.zip(previous_requirements) reqs.filter_map do |(new_req, old_req)| next if new_req == old_req file = get_original_file(new_req.fetch(:file)).dup updated_content = updated_requirement_or_setup_file_content(new_req, T.must(old_req)) next if updated_content == file&.content file&.content = updated_content file end end