From 8e04ab8b424c344c576953a2d65b366c9e9932fc Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 9 Feb 2024 20:33:19 +0100 Subject: [PATCH] Fix type signature. --- Library/Homebrew/cask/cask_loader.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cask/cask_loader.rb b/Library/Homebrew/cask/cask_loader.rb index 2f2be8c66d..8f4df90ec3 100644 --- a/Library/Homebrew/cask/cask_loader.rb +++ b/Library/Homebrew/cask/cask_loader.rb @@ -439,10 +439,10 @@ module Cask # Loader which tries loading casks from tap paths, failing # if the same token exists in multiple taps. - class FromNameLoader < FromPathLoader + module FromNameLoader sig { params(ref: T.any(String, Pathname, Cask, URI::Generic), warn: T::Boolean) - .returns(T.nilable(T.attached_class)) + .returns(T.nilable(FromTapLoader)) } def self.try_new(ref, warn: false) return unless ref.is_a?(String)