Skip to content

Commit

Permalink
Lower to typed true since we don't have all sigs
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Dec 17, 2024
1 parent 03ca706 commit d104051
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Sorbet/StrictSigil:
- "lib/ruby_indexer/lib/ruby_indexer/prefix_tree.rb"
- "lib/ruby_lsp/load_sorbet.rb"
- "lib/ruby_lsp/scripts/compose_bundle.rb"
- "lib/ruby_lsp/test_helper.rb"

Layout/ClassStructure:
Enabled: true
Expand Down
6 changes: 1 addition & 5 deletions lib/ruby_lsp/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: strict
# typed: true
# frozen_string_literal: true

# NOTE: This module is intended to be used by addons for writing their own tests, so keep that in mind if changing.
Expand Down Expand Up @@ -65,8 +65,6 @@ def pop_result(server)
end
end

# TODO: write correct sig
sig { params(message_queue: T.untyped, type: T.untyped).returns(T.untyped) }
def pop_log_notification(message_queue, type)
log = message_queue.pop
return log if log.params.type == type
Expand All @@ -75,8 +73,6 @@ def pop_log_notification(message_queue, type)
log
end

# TODO: write correct sig
sig { params(outgoing_queue: T.untyped, block: T.untyped).returns(T.untyped) }
def pop_message(outgoing_queue, &block)
message = outgoing_queue.pop
return message if block.call(message)
Expand Down

0 comments on commit d104051

Please sign in to comment.