Merge pull request #20131 from Homebrew/debrew_strict

debrew: set `typed: strict`
This commit is contained in:
Mike McQuaid 2025-06-17 18:30:10 +00:00 committed by GitHub
commit e1fc5a2784
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,13 +1,15 @@
# typed: true # rubocop:todo Sorbet/StrictSigil # typed: strict
# frozen_string_literal: true # frozen_string_literal: true
require "irb" require "irb"
module IRB module IRB
sig { params(binding: Binding).void }
def self.start_within(binding) def self.start_within(binding)
old_stdout_sync = $stdout.sync old_stdout_sync = $stdout.sync
$stdout.sync = true $stdout.sync = true
@setup_done ||= T.let(false, T.nilable(T::Boolean))
unless @setup_done unless @setup_done
setup(nil, argv: []) setup(nil, argv: [])
@setup_done = true @setup_done = true