From b1ad5d3213468ef83a88300dd83de1c250dd8088 Mon Sep 17 00:00:00 2001 From: Boris De Vos Date: Tue, 13 Oct 2026 16:26:45 +0200 Subject: [PATCH] replace some union with equivalent union that doesn't trigger warning --- src/states/infinitemps.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/states/infinitemps.jl b/src/states/infinitemps.jl index 5c791add5..353b544f4 100644 --- a/src/states/infinitemps.jl +++ b/src/states/infinitemps.jl @@ -159,11 +159,11 @@ function InfiniteMPS( kwargs... ) end -InfiniteMPS(T::Type, d::S, D::S; kwargs...) where {S <: Union{Int, <:IndexSpace}} = InfiniteMPS(T, [d], [D]; kwargs...) -InfiniteMPS(d::S, D::S; kwargs...) where {S <: Union{Int, <:IndexSpace}} = InfiniteMPS([d], [D]; kwargs...) +InfiniteMPS(T::Type, d::S, D::S; kwargs...) where {S <: Union{Int, IndexSpace}} = InfiniteMPS(T, [d], [D]; kwargs...) +InfiniteMPS(d::S, D::S; kwargs...) where {S <: Union{Int, IndexSpace}} = InfiniteMPS([d], [D]; kwargs...) function InfiniteMPS( f, T::Type, d::S, D::S; kwargs... - ) where {S <: Union{Int, <:IndexSpace}} + ) where {S <: Union{Int, IndexSpace}} return InfiniteMPS(f, T, [d], [D]; kwargs...) end function InfiniteMPS(ds::AbstractVector{Int}, Ds::AbstractVector{Int}; kwargs...)