buz 2.17.0rc3__py3-none-any.whl → 2.17.0rc4__py3-none-any.whl

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,20 +1,19 @@
1
- from abc import abstractmethod
1
+ from abc import ABC, abstractmethod
2
2
  from typing import Generic, Type, TypeVar
3
3
 
4
4
  from buz import Handler
5
5
  from buz.query import Query, QueryResponse
6
6
 
7
-
8
7
  TQuery = TypeVar("TQuery", bound=Query)
9
8
  TQueryResponse = TypeVar("TQueryResponse", bound=QueryResponse)
10
9
 
11
10
 
12
- class QueryHandler(Generic[TQuery, TQueryResponse], Handler[TQuery]):
11
+ class QueryHandler(Generic[TQuery, TQueryResponse], Handler[TQuery], ABC):
13
12
  @classmethod
14
13
  @abstractmethod
15
14
  def handles(cls) -> Type[TQuery]:
16
15
  pass
17
16
 
18
17
  @abstractmethod
19
- async def handle(self, query: Query) -> TQueryResponse:
18
+ async def handle(self, query: TQuery) -> TQueryResponse:
20
19
  pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: buz
3
- Version: 2.17.0rc3
3
+ Version: 2.17.0rc4
4
4
  Summary: Buz is a set of light, simple and extensible implementations of event, command and query buses.
5
5
  License: MIT
6
6
  Author: Luis Pintado Lozano
@@ -230,7 +230,7 @@ buz/query/asynchronous/middleware/base_handle_middleware.py,sha256=51FliRBVrobao
230
230
  buz/query/asynchronous/middleware/handle_middleware.py,sha256=LfQLKc4jIlUegbGbnMXqCSXgAl6NaRGqvKDN0GuvgY4,462
231
231
  buz/query/asynchronous/middleware/handle_middleware_chain_resolver.py,sha256=iA2faVRvNkuS5S4dB1buP25JGSqfBKBQIKg14hWis2U,1123
232
232
  buz/query/asynchronous/query_bus.py,sha256=L3VIw6VofJzJYH2oie5uFKH-dQ-M6a2VECTd6Seos_o,195
233
- buz/query/asynchronous/query_handler.py,sha256=Me80YBdGP368WYUhEY7n5AmwacFmdqFYyiM6TyDrqKE,501
233
+ buz/query/asynchronous/query_handler.py,sha256=70SbvY_vfFvEl2q3nzXUPQeVYkfcd7x1tJIIycto4sc,511
234
234
  buz/query/asynchronous/self_process/__init__.py,sha256=5y0dGgeDq0ZPCrexVjvJWT6gix8lKd-7Iw7Z3H8dirc,126
235
235
  buz/query/asynchronous/self_process/self_process_query_bus.py,sha256=2PqbJGrjv7ULEAl0yIj-Gn4ylVc3_EvJ0VXIlzUlhNc,1217
236
236
  buz/query/more_than_one_query_handler_related_exception.py,sha256=sEfShwCB1VHdUbf02NSEAyv6pXx4GO9ram0AenBF_dE,516
@@ -258,7 +258,7 @@ buz/serializer/message_to_json_bytes_serializer.py,sha256=RGZJ64t4t4Pz2FCASZZCv-
258
258
  buz/wrapper/__init__.py,sha256=GnRdJFcncn-qp0hzDG9dBHLmTJSbHFVjE_yr-MdW_n4,77
259
259
  buz/wrapper/async_to_sync.py,sha256=OfK-vrVUhuN-LLLvekLdMbQYtH0ue5lfbvuasj6ovMI,698
260
260
  buz/wrapper/event_loop.py,sha256=pfBJ1g-8A2a3YgW8Gf9Fg0kkewoh3-wgTy2KIFDyfHk,266
261
- buz-2.17.0rc3.dist-info/LICENSE,sha256=jcLgcIIVaBqaZNwe0kzGWSU99YgwMcI0IGv142wkYSM,1062
262
- buz-2.17.0rc3.dist-info/METADATA,sha256=q-UNL9YxgQJcky0-LkcEHl6_WBCiYSdU5fkPLFiUxBk,12682
263
- buz-2.17.0rc3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
264
- buz-2.17.0rc3.dist-info/RECORD,,
261
+ buz-2.17.0rc4.dist-info/LICENSE,sha256=jcLgcIIVaBqaZNwe0kzGWSU99YgwMcI0IGv142wkYSM,1062
262
+ buz-2.17.0rc4.dist-info/METADATA,sha256=VdgMEfesDUOw2RFFiIf1Z4hh32XO2tBGc1qd2uUwv98,12682
263
+ buz-2.17.0rc4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
264
+ buz-2.17.0rc4.dist-info/RECORD,,