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