api: Add Optional timeout parameter to deregister.

This commit is contained in:
neiljp (Neil Pilgrim) 2019-01-14 12:22:33 -08:00 committed by Tim Abbott
parent f858e48468
commit eb0e150a71

View file

@ -973,8 +973,8 @@ class Client(object):
request=request, request=request,
) )
def deregister(self, queue_id): def deregister(self, queue_id, timeout=None):
# type: (str) -> Dict[str, Any] # type: (str, Optional[float]) -> Dict[str, Any]
''' '''
Example usage: Example usage:
@ -989,6 +989,7 @@ class Client(object):
url="events", url="events",
method="DELETE", method="DELETE",
request=request, request=request,
timeout=timeout,
) )
def get_profile(self, request=None): def get_profile(self, request=None):