Skip to content

Commit

Permalink
Add comment about type alias used by printing
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman authored Jan 12, 2025
1 parent 5a9c162 commit 9a34fa2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/abstractsparsearray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ using LinearAlgebra: LinearAlgebra
# which is where matrix multiplication and factorizations
# should go.
@derive AnyAbstractSparseArray AbstractArrayOps

# This type alias is a temporary workaround since `@derive`
# doesn't parse the `@MIME_str` macro properly at the moment.
const MIMEtextplain = MIME"text/plain"
@derive (T=AnyAbstractSparseArray,) begin
Base.show(::IO, ::MIMEtextplain, ::T)
Expand Down

0 comments on commit 9a34fa2

Please sign in to comment.