From 8db7260e98901580db5e76a43eed5fae05ef4893 Mon Sep 17 00:00:00 2001 From: Ludvig Killingberg Date: Wed, 11 Sep 2024 19:46:58 +0200 Subject: [PATCH] Remove type piracy Type piracy of Base.iterate causes issues when loading package extensions. --- src/product.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/product.jl b/src/product.jl index f8e5506..52be020 100644 --- a/src/product.jl +++ b/src/product.jl @@ -55,7 +55,7 @@ end Base.eltype(space::TupleProduct) = Tuple{map(eltype, subspaces(space))...} Base.length(space::TupleProduct) = mapreduce(length, *, subspaces(space)) -Base.iterate(space, args...) = iterate(Iterators.product(subspaces(space)...), args...) +Base.iterate(space::TupleProduct, args...) = iterate(Iterators.product(subspaces(space)...), args...) function bounds(s::TupleProduct) bds = map(bounds, subspaces(s))