Skip to content

Commit

Permalink
activesupport: Update the type of Array.wrap
Browse files Browse the repository at this point in the history
this also changes the case of `[T] (T ele) -> [T]` to `-> Array[T]`
  • Loading branch information
tk0miya committed Oct 10, 2024
1 parent 3f48ea5 commit b9e7d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gems/activesupport/6.0/activesupport.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ class Array[unchecked out Elem]
# apply to the rest of <tt>object</tt>s.
def self.wrap: (nil) -> Array[untyped]
| [T] (_ToAry[T] array_like) -> Array[T]
| [T] (T ele) -> [T]
| [T] (T ele) -> Array[T]
end

module ActiveSupport
Expand Down

0 comments on commit b9e7d7f

Please sign in to comment.