Skip to content

Commit 0635607

Browse files
committed
Revert changes to Base.show on AccumulatorTuple
1 parent 8a7fea8 commit 0635607

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/accumulators.jl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,8 @@ end
128128
AccumulatorTuple(accs::Vararg{AbstractAccumulator}) = AccumulatorTuple(accs)
129129
AccumulatorTuple(nt::NamedTuple) = AccumulatorTuple(tuple(nt...))
130130

131-
# When showing with text/plain, leave out type information about the wrapper AccumulatorTuple.
132-
function Base.show(io::IO, mime::MIME"text/plain", at::AccumulatorTuple)
133-
print(io, "AccumulatorTuple(")
134-
show(io, mime, at.nt)
135-
print(io, ")")
136-
return nothing
137-
end
131+
# When showing with text/plain, leave out information about the wrapper AccumulatorTuple.
132+
Base.show(io::IO, mime::MIME"text/plain", at::AccumulatorTuple) = show(io, mime, at.nt)
138133
Base.getindex(at::AccumulatorTuple, idx) = at.nt[idx]
139134
Base.length(::AccumulatorTuple{N}) where {N} = N
140135
Base.iterate(at::AccumulatorTuple, args...) = iterate(at.nt, args...)

0 commit comments

Comments
 (0)