Skip to content

Commit 44f88a8

Browse files
committed
Assert type for displaysize
1 parent 6a69baa commit 44f88a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/show.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ getindex(io::IO, key) = throw(KeyError(key))
340340
get(io::IOContext, key, default) = get(io.dict, key, default)
341341
get(io::IO, key, default) = default
342342

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

345345
show_circular(io::IO, @nospecialize(x)) = false
346346
function show_circular(io::IOContext, @nospecialize(x))

0 commit comments

Comments
 (0)