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 Feb 9, 2018
1 parent 5f75cef commit d3db724
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 d3db724

Please sign in to comment.