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 7084ab2
Showing 1 changed file with 1 addition and 5 deletions.
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 7084ab2

Please sign in to comment.