Closed dhanak closed 2 months ago
So, I was wondering why Vararg
s are necessary in the function definitions at all. IIUC, this
StateSpaceSet(xs::Vararg{Union{AbstractVector, AbstractStateSpaceSet}}) = hcat(xs...)
should be written like this instead:
StateSpaceSet(xs::Union{AbstractVector, AbstractStateSpaceSet}...) = hcat(xs...)
and roughly the same goes for all other five locations as well.
Yeah it is some veeeeeery very old code pre 1.0 Julia. Would you mind putting in a Pr that changes to what you proposed ?
Describe the bug The package causes some Vararg deprecation warnings while compiling with Julia >=1.7.
This doesn't occur during precompilation, but when JIT compiling certain functions.
Vararg
occurs in six lines in the source code, these are:Items 1-5 all violate the deprecation check.
Minimal Working Example
Running the package's own tests with
julia --depwarn=yes --project -e "using Pkg; Pkg.test()"
reproduces the warning.Package versions