Skip to content

Commit 0bebcd2

Browse files
committed
stop show(::MLJType) displaying type parameters
1 parent 43316d1 commit 0bebcd2

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

src/show.jl

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -120,19 +120,22 @@ show_handle(object) = false
120120
function simple_repr(T)
121121
repr = string(T.name.name)
122122
parameters = T.parameters
123-
p_string = ""
124-
if length(parameters) > 0
125-
p = parameters[1]
126-
if p isa DataType
127-
p_string = simple_repr(p)
128-
elseif p isa Symbol
129-
p_string = string(":", p)
130-
end
131-
if length(parameters) > 1
132-
p_string *= ",…"
133-
end
134-
end
135-
isempty(p_string) || (repr *= "{"*p_string*"}")
123+
124+
# # add abbreviated type parameters:
125+
# p_string = ""
126+
# if length(parameters) > 0
127+
# p = parameters[1]
128+
# if p isa DataType
129+
# p_string = simple_repr(p)
130+
# elseif p isa Symbol
131+
# p_string = string(":", p)
132+
# end
133+
# if length(parameters) > 1
134+
# p_string *= ",…"
135+
# end
136+
# end
137+
# isempty(p_string) || (repr *= "{"*p_string*"}")
138+
136139
return repr
137140
end
138141

0 commit comments

Comments
 (0)