mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #20131 from Homebrew/debrew_strict
debrew: set `typed: strict`
This commit is contained in:
commit
e1fc5a2784
@ -1,13 +1,15 @@
|
||||
# typed: true # rubocop:todo Sorbet/StrictSigil
|
||||
# typed: strict
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "irb"
|
||||
|
||||
module IRB
|
||||
sig { params(binding: Binding).void }
|
||||
def self.start_within(binding)
|
||||
old_stdout_sync = $stdout.sync
|
||||
$stdout.sync = true
|
||||
|
||||
@setup_done ||= T.let(false, T.nilable(T::Boolean))
|
||||
unless @setup_done
|
||||
setup(nil, argv: [])
|
||||
@setup_done = true
|
||||
|
Loading…
x
Reference in New Issue
Block a user