Add list_subscriptions() back for backward compatibility.
This commit is contained in:
parent
57e8886dfe
commit
61abb4f59c
|
@ -1288,6 +1288,11 @@ class Client:
|
||||||
request=request,
|
request=request,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def list_subscriptions(self, request: Optional[Dict[str, Any]] = None) -> Dict[str, Any]:
|
||||||
|
logger.warning("list_subscriptions() is deprecated."
|
||||||
|
" Please use get_subscriptions() instead.")
|
||||||
|
return self.get_subscriptions(request)
|
||||||
|
|
||||||
def add_subscriptions(self, streams: Iterable[Dict[str, Any]], **kwargs: Any) -> Dict[str, Any]:
|
def add_subscriptions(self, streams: Iterable[Dict[str, Any]], **kwargs: Any) -> Dict[str, Any]:
|
||||||
'''
|
'''
|
||||||
See examples/subscribe for example usage.
|
See examples/subscribe for example usage.
|
||||||
|
|
Loading…
Reference in a new issue