Skip to content

Commit

Permalink
Assert type for displaysize
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Jun 17, 2020
1 parent 6a69baa commit 44f88a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ getindex(io::IO, key) = throw(KeyError(key))
get(io::IOContext, key, default) = get(io.dict, key, default)
get(io::IO, key, default) = default

displaysize(io::IOContext) = haskey(io, :displaysize) ? io[:displaysize] : displaysize(io.io)
displaysize(io::IOContext) = haskey(io, :displaysize) ? io[:displaysize]::Tuple{Int,Int} : displaysize(io.io)

show_circular(io::IO, @nospecialize(x)) = false
function show_circular(io::IOContext, @nospecialize(x))
Expand Down

0 comments on commit 44f88a8

Please sign in to comment.