1.6.0 (2024-06-05)
- Added the
compare
function. (#45)
1.5.0 (2024-06-04)
- Added
PartialCompare[T]
, which acts similarly toCompare
, except it allows for comparing against definedT
. (#44)
- Fixed the
!=
operator implementation ofCompare
. (#44)
- Added the following protocols:
PartialLess[T]
;PartialGreater[T]
;PartialStrictOrdered[T]
;PartialLessOrEqual[T]
;PartialGreaterOrEqual[T]
;PartialLenientOrdered[T]
;PartialOrdered[T]
.
- Added the
is_compare
function to check for items that implement theCompare
protocol.
- All the protocols in the library are now marked as
@runtime_checkable
.
No significant changes.
- Dropped Python 3.7 support.
- Updated methods to use
(self, other: Self)
instead of(self: T, other: T)
.
- Migrated to using
typing-aliases
library.
- Added hints for type-checkers, showing that the
other
argument can be positional.
Initial release.