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 @@ -406,10 +406,10 @@ end
406
406
407
407
# The functions `findmin`, `findmax`, `argmin`, and `argmax` are supported
408
408
# to work correctly for the following iterable types:
409
- _valtype (x:: AbstractArray{T} ) where T <: AbstractFloat = eltype (x)
410
- _valtype (x:: Tuple{Vararg{T} where T<: AbstractFloat} ) = eltype (x)
411
- _valtype (x:: NamedTuple{syms , <:Tuple{Vararg{T} where T<: AbstractFloat}} ) where {syms} = eltype (x)
412
- _valtype (x:: AbstractDict{K,T} ) where {K,T <: AbstractFloat } = valtype (x)
409
+ _valtype (x:: AbstractArray{<:AbstractFloat} ) = eltype (x)
410
+ _valtype (x:: Tuple{Vararg{AbstractFloat}} ) = eltype (x)
411
+ _valtype (x:: NamedTuple{<:Any , <:Tuple{Vararg{AbstractFloat}}} ) = eltype (x)
412
+ _valtype (x:: AbstractDict{<:Any, <:AbstractFloat} ) = valtype (x)
413
413
_valtype (x) = error (
414
414
" Iterables with value type AbstractFloat or its subtypes are supported.
415
415
The provided input type $(typeof (x)) is not.
You can’t perform that action at this time.
0 commit comments