Skip to content

Commit

Permalink
Merge pull request #156 from KristofferC/patch-2
Browse files Browse the repository at this point in the history
remove show method for `TrackedArray` type
  • Loading branch information
ChrisRackauckas authored Nov 17, 2023
2 parents 8c93470 + ca32ad3 commit 6678e4c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "Tracker"
uuid = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c"
version = "0.2.30"
version = "0.2.31"

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Expand Down
5 changes: 0 additions & 5 deletions src/lib/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ Base.convert(T::Type{<:TrackedArray}, x::TrackedArray) =
Base.convert(::Type{<:TrackedArray{T,N,A}}, x::AbstractArray) where {T,N,A} =
TrackedArray(convert(A, x))

Base.show(io::IO, t::Type{TrackedArray{T,N,A}}) where {T,N,A<:AbstractArray{T,N}} =
@isdefined(A) ?
print(io, "TrackedArray{…,$A}") :
invoke(show, Tuple{IO,DataType}, io, t)

function Base.summary(io::IO, x::TrackedArray)
print(io, "Tracked ")
summary(io, data(x))
Expand Down

0 comments on commit 6678e4c

Please sign in to comment.