From bcbdbd7eeb0d4355db2f629c0d0491223a0b1ac9 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Mon, 8 Sep 2025 09:55:44 -0700 Subject: [PATCH] Try to track down linux type bug --- Library/Homebrew/standalone/sorbet.rb | 1 + Library/Homebrew/tab.rb | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/standalone/sorbet.rb b/Library/Homebrew/standalone/sorbet.rb index ae492f8a77..e9202f06e0 100644 --- a/Library/Homebrew/standalone/sorbet.rb +++ b/Library/Homebrew/standalone/sorbet.rb @@ -48,6 +48,7 @@ else T::Configuration.inline_type_error_handler = ->(error, opts) {} end +# TODO: only do this in specs module T module Types class FixedArray < Base diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb index 15b5b0ae21..d95edf2c30 100644 --- a/Library/Homebrew/tab.rb +++ b/Library/Homebrew/tab.rb @@ -167,15 +167,18 @@ class Tab < AbstractTab # @api internal attr_accessor :poured_from_bottle - attr_accessor :built_as_bottle, :changed_files, :stdlib, :aliases + attr_accessor :built_as_bottle, :stdlib, :aliases attr_writer :used_options, :unused_options, :compiler, :source_modified_time attr_reader :tapped_from + sig { returns(T.nilable(T::Array[Pathname])) } + attr_accessor :changed_files + sig { params(attributes: T.any(T::Hash[String, T.untyped], T::Hash[Symbol, T.untyped])).void } def initialize(attributes = {}) @poured_from_bottle = T.let(nil, T.nilable(T::Boolean)) @built_as_bottle = T.let(nil, T.nilable(T::Boolean)) - @changed_files = T.let(nil, T.nilable(T::Array[Pathname])) + @changed_files = nil @stdlib = T.let(nil, T.nilable(String)) @aliases = T.let(nil, T.nilable(T::Array[String])) @used_options = T.let(nil, T.nilable(T::Array[String]))