From 4b4d474e3ca789a727ef6678f47dd9b4a7943c7d Mon Sep 17 00:00:00 2001 From: t-bltg Date: Tue, 14 Sep 2021 18:55:08 +0200 Subject: [PATCH] avoid Vararg --- src/utils.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils.jl b/src/utils.jl index e5527648..c90f90e6 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -205,14 +205,14 @@ maketuple(x::Tuple{T,S}) where {T,S} = x for i in 2:4 @eval begin RecipesPipeline.unzip( - v::Union{AVec{<:Tuple{Vararg{T,$i} where T}},AVec{<:GeometryBasics.Point{$i}}}, + v::Union{AVec{<:NTuple{$i,T} where T},AVec{<:GeometryBasics.Point{$i}}}, ) = $(Expr(:tuple, (:([t[$j] for t in v]) for j in 1:i)...)) end end -RecipesPipeline.unzip( - ::Union{AVec{<:GeometryBasics.Point{N}},AVec{<:Tuple{Vararg{T,N} where T}}}, -) where {N} = error("$N-dimensional unzip not implemented.") +RecipesPipeline.unzip(::Union{AVec{<:GeometryBasics.Point{N}},AVec{<:NTuple{N,T} where T}}) where {N} = + error("$N-dimensional unzip not implemented.") + RecipesPipeline.unzip(::Union{AVec{<:GeometryBasics.Point},AVec{<:Tuple}}) = error("Can't unzip points of different dimensions.")