From 405c7fdc20c746923483ec86eaffb9fa256f6825 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20S=C3=A1nchez=20Ram=C3=ADrez?= Date: Mon, 22 Jul 2024 00:51:22 +0200 Subject: [PATCH] Fix dispatch match on IO type of `show` on `TracedRArray` --- src/Tracing.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tracing.jl b/src/Tracing.jl index 630da6b7a..45e65500c 100644 --- a/src/Tracing.jl +++ b/src/Tracing.jl @@ -24,7 +24,7 @@ function Base.similar(x::TracedRArray{T,N}, ::Type{T2}) where {T,N,T2} return TracedRArray{T2,N}((), nothing, size(x)) end -function Base.show(io::IO, X::TracedRArray{T,N}) where {T,N} +function Base.show(io::IOty, X::TracedRArray{T,N}) where {T,N,IOty<:Union{IO,IOContext}} print(io, "TracedRArray{", T, ",", N, "N}(", X.paths, ", ") return print(io, X.mlir_data, ")") end