Add contains for ranges

This commit is contained in:
Mauricio Baeza 2020-11-26 23:14:57 -06:00
parent 811279bf7e
commit 361e4d3597
2 changed files with 3 additions and 3 deletions

View File

@ -472,9 +472,6 @@ class LOBase(object):
class LOCellRange(object):
def __contains__(self, item):
return item.in_range(self)
def copy(self, source):
self.sheet.obj.copyRange(self.address, source.range_address)
return

View File

@ -1864,6 +1864,9 @@ class LOCalcRange(object):
def __exit__(self, exc_type, exc_value, traceback):
pass
def __contains__(self, item):
return item.in_range(self)
def __str__(self):
if self.is_none:
s = 'Range: None'