Skip to content

Commit 0a81300

Browse files
authored
remove deprecated VarArg{<:...} (#137)
* remove deprecated `VarArg{<:...}` * Update statsbase.jl
1 parent 3a3a919 commit 0a81300

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/stack.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ function LazyStack.rewrap_like(A, a::NamedTuple)
1414
end
1515

1616
# tuple of arrays
17-
function LazyStack.stack(x::Tuple{Vararg{<:KeyedArray}})
17+
function LazyStack.stack(x::Tuple{Vararg{KeyedArray}})
1818
KeyedArray(LazyStack.stack(map(parent, x)), stack_keys(x))
1919
end
2020

21-
stack_keys(xs::Tuple{Vararg{<:KeyedArray}}) =
21+
stack_keys(xs::Tuple{Vararg{KeyedArray}}) =
2222
(keys_or_axes(first(xs))..., Base.OneTo(length(xs)))
2323

2424
# array of arrays: first strip off outer containers...

src/statsbase.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ end
4848

4949
for fun in (:std, :var, :cov)
5050
full_name = Symbol("mean_and_$fun")
51-
@eval StatsBase.$full_name(A::KeyedMatrix, wv::Vararg{<:AbstractWeights}; dims=:, corrected::Bool=true, kwargs...) =
51+
@eval StatsBase.$full_name(A::KeyedMatrix, wv::Vararg{AbstractWeights}; dims=:, corrected::Bool=true, kwargs...) =
5252
(
5353
mean(A, wv...; dims=dims, kwargs...),
5454
$fun(A, wv...; dims=dims, corrected=corrected, kwargs...)

0 commit comments

Comments
 (0)