Add contains for ranges
This commit is contained in:
parent
811279bf7e
commit
361e4d3597
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue