Skip to content

Commit a76ca78

Browse files
committed
Vararg{Any} -> Vararg{T}
1 parent ef4540c commit a76ca78

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/nlp/batch/foreach.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function _batch_map(f::F, bnlp::ForEachBatchNLPModel, xs::Vararg{T,N}) where {F,
2525
return results
2626
end
2727

28-
function _batch_map!(f::F, bnlp::ForEachBatchNLPModel, xs::Vararg{Any,N}) where {F,N}
28+
function _batch_map!(f::F, bnlp::ForEachBatchNLPModel, xs::Vararg{T,N}) where {F,T,N}
2929
n = bnlp.batch_size
3030
length(xs) == 0 && error("Cannot call _batch_map! without providing arguments.")
3131
@lencheck_tup n xs
@@ -52,7 +52,7 @@ function _batch_map_weight(f::F, bnlp::ForEachBatchNLPModel, obj_weights, xs::Va
5252
return results
5353
end
5454

55-
function _batch_map_weight!(f::F, bnlp::ForEachBatchNLPModel, obj_weights, xs::Vararg{Any,N}) where {F,N}
55+
function _batch_map_weight!(f::F, bnlp::ForEachBatchNLPModel, obj_weights, xs::Vararg{T,N}) where {F,T,N}
5656
n = bnlp.batch_size
5757
length(xs) == 0 && error("Cannot call _batch_map_weight! without providing arguments.")
5858
@lencheck_tup n xs

src/nlp/batch/inplace.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function _batch_map(f::F, bnlp::InplaceBatchNLPModel, xs::Vararg{T,N}) where {F,
3131
return results
3232
end
3333

34-
function _batch_map!(f::F, bnlp::InplaceBatchNLPModel, xs::Vararg{Any,N}) where {F,N}
34+
function _batch_map!(f::F, bnlp::InplaceBatchNLPModel, xs::Vararg{T,N}) where {F,T,N}
3535
n = bnlp.batch_size
3636
length(xs) == 0 && error("Cannot call _batch_map! without providing arguments.")
3737
@lencheck_tup n xs
@@ -60,7 +60,7 @@ function _batch_map_weight(f::F, bnlp::InplaceBatchNLPModel, obj_weights, xs::Va
6060
return results
6161
end
6262

63-
function _batch_map_weight!(f::F, bnlp::InplaceBatchNLPModel, obj_weights, xs::Vararg{Any,N}) where {F,N}
63+
function _batch_map_weight!(f::F, bnlp::InplaceBatchNLPModel, obj_weights, xs::Vararg{T,N}) where {F,T,N}
6464
n = bnlp.batch_size
6565
length(xs) == 0 && error("_batch_map_weight! with zero args")
6666
@lencheck_tup n xs

0 commit comments

Comments
 (0)