Skip to content

Commit 5980ad3

Browse files
committed
Fix Vararg issue
1 parent ca02438 commit 5980ad3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/NaNMath.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,10 +372,10 @@ end
372372

373373
# The functions `findmin`, `findmax`, `argmin`, and `argmax` are supported
374374
# to work correctly for the following iterable types:
375-
_valtype(x::AbstractArray{T}) where T<:AbstractFloat = eltype(x)
376-
_valtype(x::Tuple{Vararg{T} where T<:AbstractFloat}) = eltype(x)
377-
_valtype(x::NamedTuple{syms, <:Tuple{Vararg{T} where T<:AbstractFloat}}) where {syms} = eltype(x)
378-
_valtype(x::AbstractDict{K,T}) where {K,T<:AbstractFloat} = valtype(x)
375+
_valtype(x::AbstractArray{<:AbstractFloat}) = eltype(x)
376+
_valtype(x::Tuple{Vararg{AbstractFloat}}) = eltype(x)
377+
_valtype(x::NamedTuple{<:Any, <:Tuple{Vararg{AbstractFloat}}}) = eltype(x)
378+
_valtype(x::AbstractDict{<:Any,<:AbstractFloat}) = valtype(x)
379379
_valtype(x) = error(
380380
"Iterables with value type AbstractFloat or its subtypes are supported.
381381
The provided input type $(typeof(x)) is not.

0 commit comments

Comments
 (0)