- Migrated to the latest version of the
wraps
library.
- Added
at_most_one
andexactly_one
methods.
- Improved error messages.
is_marker
andis_no_default
now takeAny
as the argument.
- Improved typing.
No significant changes.
- Improved typing.
- Changed
reduce
andreduce_await
onIter[T]
andAsyncIter[T]
to returnOption[T]
instead of erroring on empty iterators.
- Changed
variable is marker
andvariable is no_default
tois_marker(variable)
andis_no_default(variable)
respectively.
No significant changes.
- Migrated to Python 3.8.
- Fixed
final
import to be compatible with Python 3.7.
- Migrated to using
typing-aliases
library.
- This release contains lots of breaking changes. Please refer to the API documentation.
async-extensions
is now used instead of reimplementingcollect_iterable
functionality.
- Marked the internals of the
OrderedSet[Q]
private.
- Added
collect_iter
method forAsyncIter[T]
andIter[T]
.
- Added
into_iter
method forAsyncIter[T]
. - Added
into_async_iter
method forIter[T]
.
- Added
OrderedSet[Q]
type within theiters.ordered_set
module. - Added
ordered_set
method toIter[T]
andAsyncIter[T]
.
-
Functions taking
Predicate[T]
have been updated to acceptOptionalPredicate[T]
. PassingNone
as an argument is identical to passingbool
.There are three functions which do not accept
None
, though:drop_while
skip_while
take_while
This choice is motivated by the fact that it does not make much sense to
do_while(None)
.
- The following functions have been changed:
async_iter
is now an alias ofAsyncIter
;iter
is now an alias ofIter
;reversed
is now an alias ofiter.reversed
.
- Changed functions of various arity returning
Awaitable[T]
to async functions returningT
. (#15)
- Added
await async_iter
, equivalent toawait async_iter.list()
.
Initial release.