File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments