seequent / properties

An organizational aid and wrapper for validation and tab completion of class properties/traits.
http://propertiespy.rtfd.org
MIT License
18 stars 9 forks source link

Array property with int dtype does not allow unsigned ints #274

Closed fwkoch closed 5 years ago

fwkoch commented 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

This should be trivial to fix by adding 'u' here: https://github.com/seequent/properties/blob/9fd6fb0a787e4e8692beb36e537ae8735bdec247/properties/math.py#L15