Closed fwkoch closed 5 years ago
As a user of properties, I would expect that assigning an array with an unsigned integer dtype would pass validation for properties.Array(..., dtype=int). However, it does not, since properties looks for dtype.kind == 'i': https://github.com/seequent/properties/blob/9fd6fb0a787e4e8692beb36e537ae8735bdec247/properties/math.py#L135
properties.Array(..., dtype=int)
dtype.kind == 'i'
This should be trivial to fix by adding 'u' here: https://github.com/seequent/properties/blob/9fd6fb0a787e4e8692beb36e537ae8735bdec247/properties/math.py#L15
'u'
As a user of properties, I would expect that assigning an array with an unsigned integer dtype would pass validation for
properties.Array(..., dtype=int)
. However, it does not, since properties looks fordtype.kind == 'i'
: https://github.com/seequent/properties/blob/9fd6fb0a787e4e8692beb36e537ae8735bdec247/properties/math.py#L135This should be trivial to fix by adding
'u'
here: https://github.com/seequent/properties/blob/9fd6fb0a787e4e8692beb36e537ae8735bdec247/properties/math.py#L15