Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

Commit a4c0668

Browse files
committed
Parameterize GridPlot.apply() methods to help with subtyping
1 parent b47fdc2 commit a4c0668

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bokeh/src/main/scala/models/Plots.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ trait BackRef { self: Model =>
8888
}
8989

9090
object GridPlot {
91-
def apply[R](rows: R*)(implicit r: Row[R, Plot]): GridPlot = {
91+
def apply[R, V <: Plot](rows: R*)(implicit r: Row[R, V]): GridPlot = {
9292
new GridPlot().children(rows.toList.map(r.toList(_)))
9393
}
9494

95-
def apply(row: Plot*): GridPlot = {
95+
def apply[V <: Plot](row: V*): GridPlot = {
9696
new GridPlot().children(List(row.toList))
9797
}
9898
}

0 commit comments

Comments
 (0)