Skip to content

Commit

Permalink
Fix to allow use of Empty in AdjointLayouts
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Jan 27, 2018
1 parent a05c7ae commit 3f5f461
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holoviews/core/spaces.py
Expand Up @@ -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
Expand Down Expand Up @@ -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])
Expand Down

0 comments on commit 3f5f461

Please sign in to comment.