Skip to content

Commit

Permalink
Fix to allow use of Empty in AdjointLayouts (#2275)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens authored and philippjfr committed Jan 28, 2018
1 parent df32b8f commit 6a6b629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holoviews/core/spaces.py
Original file line number Diff line number Diff line change
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 6a6b629

Please sign in to comment.