Skip to content

Commit

Permalink
Update parlour and regenerate RBI file
Browse files Browse the repository at this point in the history
  • Loading branch information
molawson committed May 8, 2024
1 parent b5dca8a commit 8d57037
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ GEM
method_source (1.0.0)
netrc (0.11.0)
parallel (1.24.0)
parlour (6.0.1)
parlour (8.1.0)
commander (~> 4.5)
parser
rainbow (~> 3.0)
Expand Down
10 changes: 8 additions & 2 deletions rbi/repeatable.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ module Repeatable
sig { returns(T::Hash[Symbol, T.any(Types::SymbolHash, T::Array[Types::SymbolHash])]) }
def to_h; end

sig { params(_keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.any(Types::SymbolHash, T::Array[Types::SymbolHash])]) }
def deconstruct_keys(_keys); end

sig { params(other: Object).returns(T::Boolean) }
def ==(other); end

Expand Down Expand Up @@ -92,6 +95,9 @@ module Repeatable
sig { returns(T::Hash[Symbol, T.any(Types::SymbolHash, T::Array[Types::SymbolHash])]) }
def to_h; end

sig { params(_keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.any(Types::SymbolHash, T::Array[Types::SymbolHash])]) }
def deconstruct_keys(_keys); end

sig { params(other: Expression::Base).returns(Expression::Union) }
def union(other); end

Expand Down Expand Up @@ -241,8 +247,8 @@ module Repeatable
sig { returns(T::Array[Expression::Base]) }
attr_reader :elements

sig { params(elements: T.any(Expression::Base, T::Array[Expression::Base])).void }
def initialize(*elements); end
sig { params(elements: T::Array[Expression::Base]).void }
def initialize(elements); end

sig { params(element: T.untyped).returns(Repeatable::Expression::Set) }
def <<(element); end
Expand Down

0 comments on commit 8d57037

Please sign in to comment.