Skip to content

Commit 1aa3a08

Browse files
committed
Merge branch 'release/3.3.3'
2 parents 7639c88 + 9520aef commit 1aa3a08

4 files changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ on:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11-
timeout-minutes: 2
11+
timeout-minutes: 4
1212
strategy:
1313
matrix:
14-
python-version: ['3.7', '3.8', '3.9', '3.10']
14+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11-dev']
1515

1616
steps:
1717
- uses: actions/checkout@v2

python_utils/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
)
88
__url__: str = 'https://github.com/WoLpH/python-utils'
99
# Omit type info due to automatic versioning script
10-
__version__ = '3.3.2'
10+
__version__ = '3.3.3'

python_utils/generators.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
async def abatcher(
9-
generator: types.AsyncGenerator,
9+
generator: types.AsyncIterator,
1010
batch_size: types.Optional[int] = None,
1111
interval: types.Optional[types.delta_type] = None,
1212
):
@@ -33,7 +33,10 @@ async def abatcher(
3333
while True:
3434
try:
3535
done, pending = await asyncio.wait(
36-
pending or [generator.__anext__()],
36+
pending
37+
or [
38+
asyncio.create_task(generator.__anext__()), # type: ignore
39+
],
3740
timeout=interval_s,
3841
return_when=asyncio.FIRST_COMPLETED,
3942
)

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = black, py37, py38, py39, py310, pypy3, flake8, docs
2+
envlist = black, py37, py38, py39, py310, py311, pypy3, flake8, docs
33
skip_missing_interpreters = True
44

55
[testenv]
@@ -8,6 +8,7 @@ basepython =
88
py38: python3.8
99
py39: python3.9
1010
py310: python3.10
11+
py311: python3.11
1112
pypy: pypy
1213

1314
setenv = PY_IGNORE_IMPORTMISMATCH=1

0 commit comments

Comments
 (0)