Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

<!-- changelogging: start -->

## 0.3.0 (2022-08-17)

### Changes

- Change functions of various arity returning `Awaitable[T]` to async functions returning `T`.
([#15](https://github.com/nekitdev/iters/pull/15))

## 0.2.0 (2022-08-15)

### Changes
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Or by directly specifying it in the configuration like so:

```toml
[tool.poetry.dependencies]
iters = "^0.2.0"
iters = "^0.3.0"
```

Alternatively, you can add it directly from the source:
Expand Down
2 changes: 1 addition & 1 deletion iters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
__title__ = "iters"
__author__ = "nekitdev"
__license__ = "MIT"
__version__ = "0.2.0"
__version__ = "0.3.0"

from iters.async_iters import (
AsyncIter,
Expand Down
131 changes: 68 additions & 63 deletions iters/async_iters.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions iters/async_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4194,12 +4194,12 @@ def async_wait_concurrent_bound(
return async_flat_map(async_wait_concurrent, async_chunks(bound, iterable))

def async_map_concurrent(
function: Unary[T, Awaitable[U]], iterable: AnyIterable[T]
function: AsyncUnary[T, U], iterable: AnyIterable[T]
) -> AsyncIterator[U]:
return async_wait_concurrent(async_map(function, iterable))

def async_map_concurrent_bound(
bound: int, function: Unary[T, Awaitable[U]], iterable: AnyIterable[T]
bound: int, function: AsyncUnary[T, U], iterable: AnyIterable[T]
) -> AsyncIterator[U]:
return async_wait_concurrent_bound(bound, async_map(function, iterable))

Expand Down
4 changes: 2 additions & 2 deletions iters/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@
Predicate = Unary[T, MaybeBool]
Selectors = Iterable[MaybeBool]

AsyncPredicate = Unary[T, Awaitable[MaybeBool]]
AsyncPredicate = AsyncUnary[T, MaybeBool]
AsyncSelectors = AsyncIterable[MaybeBool]

AnySelectors = Union[AsyncSelectors, Selectors]

Compare = Binary[T, U, MaybeBool]
AsyncCompare = Binary[T, U, Awaitable[MaybeBool]]
AsyncCompare = AsyncBinary[T, U, MaybeBool]

EmptyTuple = Tuple[()]

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "iters"
version = "0.2.0"
version = "0.3.0"
description = "Composable external iteration."
authors = ["nekitdev"]
license = "MIT"
Expand Down Expand Up @@ -131,7 +131,7 @@ warn_unused_ignores = false # compatibility

[tool.changelogging]
name = "iters"
version = "0.2.0"
version = "0.3.0"
url = "https://github.com/nekitdev/iters"
directory = "changes"
output = "CHANGELOG.md"
Expand Down