Skip to content

Commit

Permalink
omit type annotation for splat keyword argument
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed May 30, 2023
1 parent 5e6baf9 commit b83f9e0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions base/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2539,8 +2539,13 @@ function show_tuple_as_call(out::IO, name::Symbol, sig::Type;
first || print(io, ", ")
first = false
print_within_stacktrace(io, k; color=:light_black)
print(io, "::")
print_type_bicolor(io, t; use_color = get(io, :backtrace, false)::Bool)
if t == pairs(NamedTuple)
# omit type annotation for splat keyword argument
print(io, "...")
else
print(io, "::")
print_type_bicolor(io, t; use_color = get(io, :backtrace, false)::Bool)
end
end
end
print_within_stacktrace(io, ")", bold=true)
Expand Down

0 comments on commit b83f9e0

Please sign in to comment.