Portion

Latest version: v2.6.0

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

Scan your dependencies

Page 6 of 7

1.3.1

Fixed
- More tests to cover all comparisons.
- Define `__slots__` to lower memory usage, and to speed up attribute access.
- Define `Interval.__rand__` (and other magic methods) to support `Interval` from `AtomicInterval` instead of
having a dedicated piece of code in `AtomicInterval`.
- `__all__` properly defined.

1.3.0

Added
- Meaningful `<=` and `>=` comparisons for intervals.

1.2.0

Added
- `Interval` supports indexing to retrieve the underlying `AtomicInterval` objects.

1.1.0

Added
- Both `AtomicInterval` and `Interval` are fully comparable.
- `singleton(x)` to create a singleton interval [x].
- `empty()` to create an empty interval.
- `Interval.enclosure()` that returns the smallest interval that includes the current one.

Changed
- Interval simplification is in O(n) instead of O(n*m).
- `AtomicInterval` objects in an `Interval` are sorted by lower and upper bounds.

1.0.4

Fixed
- All operations of `AtomicInterval` (except overlaps) accept `Interval`.
- Raise `TypeError` instead of `ValueError` if type is not supported (coherent with `NotImplemented`).

1.0.3

- Initial release on PyPP.

Page 6 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.