class Dependabot::Uv::FileFetcher

def python_version_file

def python_version_file
  return @python_version_file if defined?(@python_version_file)
  @python_version_file = fetch_support_file(".python-version")
  return @python_version_file if @python_version_file
  return if [".", "/"].include?(directory)
  # Check the top-level for a .python-version file, too
  reverse_path = Pathname.new(directory[0]).relative_path_from(directory)
  @python_version_file =
    fetch_support_file(File.join(reverse_path, ".python-version"))
    &.tap { |f| f.name = ".python-version" }
end