bt2: _ArrayField.__setitem__(): do not check type
[babeltrace.git] / src / bindings / python / bt2 / bt2 / field.py
index 9882f0236549a143841d299c98e72b5600bedd9b..8e9dba6ab509b708960ac60360cfecbb1587a33d 100644 (file)
@@ -495,10 +495,6 @@ class _ArrayField(_ContainerField, _Field, collections.abc.MutableSequence):
                                       self._owner_put_ref)
 
     def __setitem__(self, index, value):
-        # we can only set numbers and strings
-        if not isinstance(value, (numbers.Number, _StringField, str)):
-            raise TypeError('expecting number or string object')
-
         # raises if index is somehow invalid
         field = self[index]
 
This page took 0.02584 seconds and 4 git commands to generate.