Better support for assets upload/download

This commit is contained in:
allegroai 2022-03-15 16:19:52 +02:00
parent af09fba755
commit e537651f29

View File

@ -95,8 +95,8 @@ class DataContainer(object):
@raw_data.setter
def raw_data(self, value):
assert isinstance(
value, string_types + (types.GeneratorType,)
), "Raw data must be a string type or generator"
value, string_types + (types.GeneratorType, bytes)
), "Raw data must be a string type or bytes or generator"
self._raw_data = value
@property
@ -395,6 +395,10 @@ class APICall(DataContainer):
self._auth_cookie = auth_cookie
self._json_flags = {}
@property
def files(self):
return self._files
@property
def id(self):
return self._id