Skip to content

Commit 841c7e6

Browse files
for list comprehension
1 parent 4eaa147 commit 841c7e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/wrap_tuples.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ struct WrappedTuples{T <: AbstractVector{<:NamedTuple}} <: AbstractVector{NamedT
1010
end
1111

1212
# Required methods for AbstractVector
13-
Base.size(w::WrappedTuples) = (length(w.data), length(first(w.data)))
13+
Base.size(w::WrappedTuples) = (length(w.data),)
1414
Base.getindex(w::WrappedTuples, i::Int) = w.data[i]
1515
Base.getindex(w::WrappedTuples, r::AbstractRange) = WrappedTuples(w.data[r])
1616
Base.IndexStyle(::Type{<:WrappedTuples}) = IndexLinear()

0 commit comments

Comments
 (0)