We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 231fa1e + 5bab4bc commit 957737eCopy full SHA for 957737e
3 files changed
returns/methods/__init__.py
@@ -1,4 +1,5 @@
1
"""Set of various utility functions."""
2
+
3
from returns.methods.async_ import gather as gather
4
from returns.methods.cond import cond as cond
5
from returns.methods.partition import partition as partition
returns/methods/async_.py
@@ -1,16 +1,14 @@
# flake8: noqa: WPS102
-from typing import Awaitable, Iterable
+from collections.abc import Awaitable, Iterable
import anyio
6
7
from returns.io import IOResult
8
9
10
async def gather(
11
- containers: Iterable[
12
- Awaitable,
13
- ],
+ containers: Iterable[Awaitable,],
14
) -> tuple[IOResult, ...]:
15
"""
16
Execute multiple coroutines concurrently and return their wrapped results.
tests/test_methods/test_gather.py
@@ -1,4 +1,3 @@
-
import pytest
0 commit comments