Unverified Commit e7a446ae authored by Joanna's avatar Joanna Committed by GitHub
Browse files

add len to DC (#320)


Co-authored-by: default avatarlixuanyi <lixuanyi@sensetime.com>
parent d1283981
......@@ -50,6 +50,9 @@ class DataContainer(object):
def __repr__(self):
return f'{self.__class__.__name__}({repr(self.data)})'
def __len__(self):
return len(self._data)
@property
def data(self):
return self._data
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment