mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
debrew: set typed: strict
This commit is contained in:
parent
09eaf1495a
commit
85c5f8f3a5
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user