sorbet/files.yaml: set utils/tty.rb to true

This commit is contained in:
vidusheeamoli 2020-07-02 16:05:54 +05:30
parent 3a23d07356
commit 89605d2c6f
2 changed files with 37 additions and 1 deletions

View File

@ -453,7 +453,6 @@ false:
- ./utils/github.rb
- ./utils/notability.rb
- ./utils/popen.rb
- ./utils/tty.rb
- ./utils/user.rb
false:
@ -889,6 +888,7 @@ true:
- ./tap_constants.rb
- ./test/support/helper/fixtures.rb
- ./test/support/lib/config.rb
- ./utils/tty.rb
- ./version/null.rb
strict:

View File

@ -0,0 +1,36 @@
# typed: strict
module Tty
include Kernel
sig{ params(string: String).returns(String) }
def strip_ansi(string)
end
sig{ returns(Integer) }
def width()
end
sig{ params(string: String).returns(T.nilable(String)) }
def truncate(string)
end
def append_to_escape_sequence(code)
end
sig{ returns(String) }
def current_escape_sequence()
end
sig{ void }
def reset_escape_sequence!()
end
sig{ returns(String) }
def to_s
end
sig { returns(T::Boolean) }
def color?
end
end