Orderings

Latest version: v1.4.0

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

Scan your dependencies

Page 1 of 2

1.4.0

- Added the following protocols:
- `PartialLess[T]`;
- `PartialGreater[T]`;
- `PartialStrictOrdered[T]`;
- `PartialLessOrEqual[T]`;
- `PartialGreaterOrEqual[T]`;
- `PartialLenientOrdered[T]`;
- `PartialOrdered[T]`.

1.3.2

Features

- Added the `is_compare` function to check for items that implement the `Compare` protocol.

Changes

- All the protocols in the library are now marked as `runtime_checkable`.

1.3.1

No significant changes.

1.3.0

Internal

- Dropped Python 3.7 support.
- Updated methods to use `(self, other: Self)` instead of `(self: T, other: T)`.

1.2.0

Internal

- Migrated to using `typing-aliases` library.

1.1.0

Fixes

- Added hints for type-checkers, showing that the `other` argument can be positional.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.