From f179208b43acdbb090c2a43ac365f006ac876cb3 Mon Sep 17 00:00:00 2001 From: Neven Sajko <4944410+nsajko@users.noreply.github.com> Date: Wed, 8 Jan 2025 21:44:12 +0100 Subject: [PATCH] fix --- base/broadcast.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/broadcast.jl b/base/broadcast.jl index 45768df14ef031..94fceb5de719c1 100644 --- a/base/broadcast.jl +++ b/base/broadcast.jl @@ -282,7 +282,7 @@ end Base.IteratorSize(::Type{T}) where {T<:Broadcasted} = Base.HasShape{ndims(T)}() Base.ndims(BC::Type{<:Broadcasted{<:Any,Nothing}}) = _maxndims_broadcasted(BC) function Base.ndims(BC::Type{<:Broadcasted{<:AbstractArrayStyle{N},Nothing}}) where {N} - if Any <: N + if (N isa Type) && (Any <: N) _maxndims_broadcasted(BC) else let n = N::Int