From eb0e150a7106fe55b4e2f280c75f82a590aa1a73 Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Mon, 14 Jan 2019 12:22:33 -0800 Subject: [PATCH] api: Add Optional timeout parameter to deregister. --- zulip/zulip/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index ac9b252..a6347e7 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -973,8 +973,8 @@ class Client(object): request=request, ) - def deregister(self, queue_id): - # type: (str) -> Dict[str, Any] + def deregister(self, queue_id, timeout=None): + # type: (str, Optional[float]) -> Dict[str, Any] ''' Example usage: @@ -989,6 +989,7 @@ class Client(object): url="events", method="DELETE", request=request, + timeout=timeout, ) def get_profile(self, request=None):