faust-tools 1.2.0__tar.gz → 1.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {faust_tools-1.2.0 → faust_tools-1.2.1}/PKG-INFO +1 -1
- {faust_tools-1.2.0 → faust_tools-1.2.1}/faust_tools/decorators.py +5 -3
- {faust_tools-1.2.0 → faust_tools-1.2.1}/faust_tools.egg-info/PKG-INFO +1 -1
- {faust_tools-1.2.0 → faust_tools-1.2.1}/pyproject.toml +1 -1
- {faust_tools-1.2.0 → faust_tools-1.2.1}/.flake8 +0 -0
- {faust_tools-1.2.0 → faust_tools-1.2.1}/.gitignore +0 -0
- {faust_tools-1.2.0 → faust_tools-1.2.1}/.pre-commit-config.yaml +0 -0
- {faust_tools-1.2.0 → faust_tools-1.2.1}/LICENSE +0 -0
- {faust_tools-1.2.0 → faust_tools-1.2.1}/README.md +0 -0
- {faust_tools-1.2.0 → faust_tools-1.2.1}/faust_tools/fields.py +0 -0
- {faust_tools-1.2.0 → faust_tools-1.2.1}/faust_tools/response.py +0 -0
- {faust_tools-1.2.0 → faust_tools-1.2.1}/faust_tools/serializer.py +0 -0
- {faust_tools-1.2.0 → faust_tools-1.2.1}/faust_tools.egg-info/SOURCES.txt +0 -0
- {faust_tools-1.2.0 → faust_tools-1.2.1}/faust_tools.egg-info/dependency_links.txt +0 -0
- {faust_tools-1.2.0 → faust_tools-1.2.1}/faust_tools.egg-info/requires.txt +0 -0
- {faust_tools-1.2.0 → faust_tools-1.2.1}/faust_tools.egg-info/top_level.txt +0 -0
- {faust_tools-1.2.0 → faust_tools-1.2.1}/setup.cfg +0 -0
- {faust_tools-1.2.0 → faust_tools-1.2.1}/upload.sh +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import inspect
|
|
2
2
|
import os
|
|
3
|
-
from collections.abc import AsyncIterable, Awaitable, Callable
|
|
3
|
+
from collections.abc import AsyncIterable, Awaitable, Callable, Coroutine
|
|
4
4
|
from functools import wraps
|
|
5
5
|
from typing import Any, TypeVar, Union, cast
|
|
6
6
|
|
|
@@ -89,7 +89,8 @@ def batch_stream(
|
|
|
89
89
|
) -> Callable[
|
|
90
90
|
[
|
|
91
91
|
Callable[
|
|
92
|
-
[list[StreamSerializer]],
|
|
92
|
+
[list[StreamSerializer]],
|
|
93
|
+
Union[list[Response], Coroutine[Any, Any, list[Response]]],
|
|
93
94
|
]
|
|
94
95
|
],
|
|
95
96
|
Any,
|
|
@@ -102,7 +103,8 @@ def batch_stream(
|
|
|
102
103
|
|
|
103
104
|
def decorator(
|
|
104
105
|
func: Callable[
|
|
105
|
-
[list[StreamSerializer]],
|
|
106
|
+
[list[StreamSerializer]],
|
|
107
|
+
Union[list[Response], Coroutine[Any, Any, list[Response]]],
|
|
106
108
|
],
|
|
107
109
|
) -> Any:
|
|
108
110
|
@wraps(func)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|