You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when testing any HoloViews object for "truthiness" it uses the __len__ method. In #974 we added the dask interface, which doesn't actually know it's length because it loads the data lazily. Therefore we should implement __nonzero__ (Python 2) and __bool__ (Python 3) methods, which take precedence over the length. Additionally we should confirm that all the code in HoloViews uses the implicit boolean truthiness to check for a zero length element rather than explicitly calling len.
The text was updated successfully, but these errors were encountered:
Currently when testing any HoloViews object for "truthiness" it uses the
__len__
method. In #974 we added the dask interface, which doesn't actually know it's length because it loads the data lazily. Therefore we should implement__nonzero__
(Python 2) and__bool__
(Python 3) methods, which take precedence over the length. Additionally we should confirm that all the code in HoloViews uses the implicit boolean truthiness to check for a zero length element rather than explicitly callinglen
.The text was updated successfully, but these errors were encountered: