Skip to content

Commit 957737e

Browse files
Merge branch 'gatherlike' of github.com:RomanMIzulin/returns into gatherlike
2 parents 231fa1e + 5bab4bc commit 957737e

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

returns/methods/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Set of various utility functions."""
2+
23
from returns.methods.async_ import gather as gather
34
from returns.methods.cond import cond as cond
45
from returns.methods.partition import partition as partition

returns/methods/async_.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
# flake8: noqa: WPS102
22

3-
from typing import Awaitable, Iterable
3+
from collections.abc import Awaitable, Iterable
44

55
import anyio
66

77
from returns.io import IOResult
88

99

1010
async def gather(
11-
containers: Iterable[
12-
Awaitable,
13-
],
11+
containers: Iterable[Awaitable,],
1412
) -> tuple[IOResult, ...]:
1513
"""
1614
Execute multiple coroutines concurrently and return their wrapped results.

tests/test_methods/test_gather.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import pytest
32

43
import anyio

0 commit comments

Comments
 (0)