From 1dfc7f28aa2d8cd2a205a2b34523c8e4edb95550 Mon Sep 17 00:00:00 2001 From: rafaqz Date: Sun, 3 Mar 2024 11:51:56 +0100 Subject: [PATCH] cleanup --- BaseInterfaces/src/interfaces/array.jl | 2 +- BaseInterfaces/src/interfaces/dict.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BaseInterfaces/src/interfaces/array.jl b/BaseInterfaces/src/interfaces/array.jl index e82b321..b755548 100644 --- a/BaseInterfaces/src/interfaces/array.jl +++ b/BaseInterfaces/src/interfaces/array.jl @@ -201,4 +201,4 @@ array_components = (; _wrappertype(A) = Base.typename(typeof(A)).wrapper -@interface ArrayInterface <: Union{IterationInterface{(:reverse,:indexing)}} AbstractArray array_components "Base Julia AbstractArray interface" +@interface ArrayInterface <: IterationInterface{(:reverse,:indexing)} AbstractArray array_components "Base Julia AbstractArray interface" diff --git a/BaseInterfaces/src/interfaces/dict.jl b/BaseInterfaces/src/interfaces/dict.jl index db79bbf..f309905 100644 --- a/BaseInterfaces/src/interfaces/dict.jl +++ b/BaseInterfaces/src/interfaces/dict.jl @@ -1,5 +1,5 @@ -@interface DictInterface <: Union{IterationInterface{(:reverse,)}} AbstractDict ( # <: CollectionInterface +@interface DictInterface <: IterationInterface{(:reverse,)} AbstractDict ( # <: CollectionInterface mandatory = (; iterate = "AbstractDict follows the IterationInterface" => a -> Interfaces.test(IterationInterface, a.d; show=false) && first(iterate(a.d)) isa Pair, eltype = "eltype is a Pair" => a -> eltype(a.d) <: Pair,