Properties

Latest version: v0.6.1

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

0.6.1

Bug Fixes
- `properties.Boolean.from_json` now allows `np.bool_` values in the input JSON. (See 289 - thanks lheagy !)

0.6.0

Minor Changes
- `properties.Array` now supports unsigned integer arrays. (See https://github.com/seequent/properties/issues/274)
- `coerce` is added as a new keyword argument for `properties.Array`. By default, this is `True` and inputs are coerced to the corresponding numpy array class, matching previous behaviour. However, if `coerce=False` inputs are not coerced and a `ValidationError` is raised if they do not match the corresponding numpy array class. (See https://github.com/seequent/properties/issues/272)
- Properties defined on mixin classes which use the `PropertyMetaclass` but do inherit `HasProperties` are now respected. (See https://github.com/seequent/properties/pull/283 - thanks hishnash!)
- Explicit support added for Python 3.7 and removed for 3.4. (See https://github.com/seequent/properties/pull/281)

Bug Fixes
- Order of property resolution for `HasProperties` classes with diamond inheritance was fixed to be more sensible and in line with attribute resolution for `object` diamond inheritance. Although this is considered a fix, it does fundamentally change inheritance logic for existing classes with diamond inheritance and is therefore **not backwards compatible**. (See https://github.com/seequent/properties/issues/275 and additional conversation https://github.com/seequent/properties/pull/276)
- Ensure `ValidationErrors` with no `reason`/`prop`/`instance` are not ignored. (See https://github.com/seequent/properties/issues/271)

0.5.6

Bug fix

- `Vector3Array` validation is simplified to not include the check for string representations (e.g. 'up', 'east') if using a numpy array. This vastly speeds up validation for large arrays since we no longer must iterate through every value. This fix is already present in `Vector2Array`. See gmggroup/omf43

0.5.5

New Feature
- Improved `ValidationError` messaging, including more details on property errors and info about underlying errors on `Union` and `Instance` property validation (See: https://github.com/seequent/properties/pull/261)

Bug Fixes
- Remove `functools.wraps` on serializer/deserializer functions to fix Python 2 bug (See: https://github.com/gmggroup/omf/issues/30 and https://github.com/seequent/properties/pull/265)

0.5.4

New Features
- New `URL` property under `web` extras

Bug Fixes
- Fix typo in `Pointer` `uid_prop` getter

0.5.3

Minor Changes
---------------
- `properties.extras.Task` has been refactored for more distinction between inputs/outputs and the task itself (see 252 for slightly more context).

Bug Fixes
----------
- Container property names now propagate to `prop` when the default is used (see 254).
- Custom serializer/deserializer functions that allow `kwargs` now respect provided `kwargs` rather than ignoring them (see 253).

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.