faust-tools 1.2.0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: faust-tools
3
- Version: 1.2.0
3
+ Version: 1.2.2
4
4
  Summary: Faust Tools
5
5
  Author-email: Biszx <isares.br@gmail.com>
6
6
  License: MIT
@@ -2,6 +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 types import CoroutineType
5
6
  from typing import Any, TypeVar, Union, cast
6
7
 
7
8
  from faust import App, TopicT
@@ -89,7 +90,8 @@ def batch_stream(
89
90
  ) -> Callable[
90
91
  [
91
92
  Callable[
92
- [list[StreamSerializer]], Union[list[Response], Awaitable[list[Response]]]
93
+ [list[StreamSerializer]],
94
+ Union[list[Response], CoroutineType[Any, Any, list[Response]]],
93
95
  ]
94
96
  ],
95
97
  Any,
@@ -102,7 +104,8 @@ def batch_stream(
102
104
 
103
105
  def decorator(
104
106
  func: Callable[
105
- [list[StreamSerializer]], Union[list[Response], Awaitable[list[Response]]]
107
+ [list[StreamSerializer]],
108
+ Union[list[Response], CoroutineType[Any, Any, list[Response]]],
106
109
  ],
107
110
  ) -> Any:
108
111
  @wraps(func)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: faust-tools
3
- Version: 1.2.0
3
+ Version: 1.2.2
4
4
  Summary: Faust Tools
5
5
  Author-email: Biszx <isares.br@gmail.com>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "faust-tools"
3
- version = "1.2.0"
3
+ version = "1.2.2"
4
4
  description = "Faust Tools"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.9"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes