From d3db7248edbda50d668cb23d28ad9ba3aa4b5594 Mon Sep 17 00:00:00 2001 From: Jean-Luc Stevens Date: Sun, 28 Jan 2018 13:25:10 +0000 Subject: [PATCH] Fix to allow use of Empty in AdjointLayouts (#2275) --- holoviews/core/spaces.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/holoviews/core/spaces.py b/holoviews/core/spaces.py index fb94d7ee16..b2db82d52f 100644 --- a/holoviews/core/spaces.py +++ b/holoviews/core/spaces.py @@ -11,7 +11,7 @@ from . import traversal, util from .dimension import OrderedDict, Dimension, ViewableElement, redim -from .layout import Layout, AdjointLayout, NdLayout +from .layout import Layout, AdjointLayout, NdLayout, Empty from .ndmapping import UniformNdMapping, NdMapping, item_check from .overlay import Overlay, CompositeOverlay, NdOverlay, Overlayable from .options import Store, StoreOptions @@ -225,7 +225,7 @@ def __add__(self, obj): def __lshift__(self, other): - if isinstance(other, (ViewableElement, UniformNdMapping)): + if isinstance(other, (ViewableElement, UniformNdMapping, Empty)): return AdjointLayout([self, other]) elif isinstance(other, AdjointLayout): return AdjointLayout(other.data+[self])