Skip to content

Commit a67a5f7

Browse files
committed
Vararg fixes
1 parent 4d67103 commit a67a5f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ITensors.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ end
125125
#
126126

127127
ITensors.IndexSet(is::IndexSet...) = unioninds(is)
128-
ITensors.IndexSet(is::Tuple{Vararg{<:IndexSet}}) = unioninds(is...)
128+
ITensors.IndexSet(is::Tuple{Vararg{IndexSet}}) = unioninds(is...)
129129

130130
Base.copy(is::IndexSet) = IndexSet(copy.(ITensors.data(is)))
131131

src/infinitecanonicalmps.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ end
5151
# of Index (Tuple, Vector, ITensor, etc.)
5252
indtype(i::Index) = typeof(i)
5353
indtype(T::Type{<:Index}) = T
54-
indtype(is::Tuple{Vararg{<:Index}}) = eltype(is)
54+
indtype(is::Tuple{Vararg{Index}}) = eltype(is)
5555
indtype(is::Vector{<:Index}) = eltype(is)
5656
indtype(A::ITensor...) = indtype(inds.(A))
5757

0 commit comments

Comments
 (0)