11from datetime import timedelta
2- from typing import overload
2+ from typing import final , overload
33
44from .consumers import (
55 PullConsumer ,
@@ -11,20 +11,30 @@ from .kv import KeyValue, KVConfig
1111from .object_store import ObjectStore , ObjectStoreConfig
1212from .stream import Stream , StreamConfig
1313
14+ __all__ = [
15+ "ConsumersManager" ,
16+ "KVManager" ,
17+ "ObjectStoreManager" ,
18+ "StreamsManager" ,
19+ ]
20+
21+ @final
1422class StreamsManager :
1523 async def create (self , config : StreamConfig ) -> Stream : ...
1624 async def create_or_update (self , config : StreamConfig ) -> Stream : ...
1725 async def get (self , name : str ) -> Stream : ...
1826 async def delete (self , name : str ) -> bool : ...
1927 async def update (self , config : StreamConfig ) -> Stream : ...
2028
29+ @final
2130class KVManager :
2231 async def create (self , config : KVConfig ) -> KeyValue : ...
2332 async def create_or_update (self , config : KVConfig ) -> KeyValue : ...
2433 async def get (self , bucket : str ) -> KeyValue : ...
2534 async def delete (self , bucket : str ) -> bool : ...
2635 async def update (self , config : KVConfig ) -> KeyValue : ...
2736
37+ @final
2838class ConsumersManager :
2939 @overload
3040 async def create (self , config : PullConsumerConfig ) -> PullConsumer : ...
@@ -40,6 +50,7 @@ class ConsumersManager:
4050 async def pause (self , name : str , delay : float | timedelta ) -> bool : ...
4151 async def resume (self , name : str ) -> bool : ...
4252
53+ @final
4354class ObjectStoreManager :
4455 async def create (self , config : ObjectStoreConfig ) -> ObjectStore : ...
4556 async def get (self , bucket : str ) -> ObjectStore : ...
0 commit comments