faust-tools 1.2.2__tar.gz → 1.2.3__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.2 → faust_tools-1.2.3}/PKG-INFO +1 -1
- {faust_tools-1.2.2 → faust_tools-1.2.3}/faust_tools/decorators.py +3 -4
- {faust_tools-1.2.2 → faust_tools-1.2.3}/faust_tools.egg-info/PKG-INFO +1 -1
- {faust_tools-1.2.2 → faust_tools-1.2.3}/pyproject.toml +1 -1
- {faust_tools-1.2.2 → faust_tools-1.2.3}/.flake8 +0 -0
- {faust_tools-1.2.2 → faust_tools-1.2.3}/.gitignore +0 -0
- {faust_tools-1.2.2 → faust_tools-1.2.3}/.pre-commit-config.yaml +0 -0
- {faust_tools-1.2.2 → faust_tools-1.2.3}/LICENSE +0 -0
- {faust_tools-1.2.2 → faust_tools-1.2.3}/README.md +0 -0
- {faust_tools-1.2.2 → faust_tools-1.2.3}/faust_tools/fields.py +0 -0
- {faust_tools-1.2.2 → faust_tools-1.2.3}/faust_tools/response.py +0 -0
- {faust_tools-1.2.2 → faust_tools-1.2.3}/faust_tools/serializer.py +0 -0
- {faust_tools-1.2.2 → faust_tools-1.2.3}/faust_tools.egg-info/SOURCES.txt +0 -0
- {faust_tools-1.2.2 → faust_tools-1.2.3}/faust_tools.egg-info/dependency_links.txt +0 -0
- {faust_tools-1.2.2 → faust_tools-1.2.3}/faust_tools.egg-info/requires.txt +0 -0
- {faust_tools-1.2.2 → faust_tools-1.2.3}/faust_tools.egg-info/top_level.txt +0 -0
- {faust_tools-1.2.2 → faust_tools-1.2.3}/setup.cfg +0 -0
- {faust_tools-1.2.2 → faust_tools-1.2.3}/upload.sh +0 -0
|
@@ -2,8 +2,7 @@ import inspect
|
|
|
2
2
|
import os
|
|
3
3
|
from collections.abc import AsyncIterable, Awaitable, Callable
|
|
4
4
|
from functools import wraps
|
|
5
|
-
from
|
|
6
|
-
from typing import Any, TypeVar, Union, cast
|
|
5
|
+
from typing import Any, Coroutine, TypeVar, Union, cast
|
|
7
6
|
|
|
8
7
|
from faust import App, TopicT
|
|
9
8
|
from faust.types.streams import StreamT
|
|
@@ -91,7 +90,7 @@ def batch_stream(
|
|
|
91
90
|
[
|
|
92
91
|
Callable[
|
|
93
92
|
[list[StreamSerializer]],
|
|
94
|
-
Union[list[Response],
|
|
93
|
+
Union[list[Response], Coroutine[Any, Any, list[Response]]],
|
|
95
94
|
]
|
|
96
95
|
],
|
|
97
96
|
Any,
|
|
@@ -105,7 +104,7 @@ def batch_stream(
|
|
|
105
104
|
def decorator(
|
|
106
105
|
func: Callable[
|
|
107
106
|
[list[StreamSerializer]],
|
|
108
|
-
Union[list[Response],
|
|
107
|
+
Union[list[Response], Coroutine[Any, Any, list[Response]]],
|
|
109
108
|
],
|
|
110
109
|
) -> Any:
|
|
111
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
|