@@ -66,8 +66,8 @@ class ServiceBusClient(object):
6666 :keyword float retry_backoff_factor: Delta back-off internal in the unit of second between retries.
6767 Default value is 0.8.
6868 :keyword float retry_backoff_max: Maximum back-off interval in the unit of second. Default value is 120.
69- :keyword retry_mode: The delay behavior between retry attempts. Supported values are ' fixed' or ' exponential' ,
70- where default is ' exponential' .
69+ :keyword retry_mode: The delay behavior between retry attempts. Supported values are " fixed" or " exponential" ,
70+ where default is " exponential" .
7171 :paramtype retry_mode: str
7272
7373 .. admonition:: Example:
@@ -90,8 +90,8 @@ def __init__(
9090 * ,
9191 retry_total : int = 3 ,
9292 retry_backoff_factor : float = 0.8 ,
93- retry_backoff_max : int = 120 ,
94- retry_mode : str = ' exponential' ,
93+ retry_backoff_max : float = 120 ,
94+ retry_mode : str = " exponential" ,
9595 ** kwargs : Any
9696 ) -> None :
9797 # If the user provided http:// or sb://, let's be polite and strip that.
@@ -278,14 +278,13 @@ def get_queue_receiver(
278278 :keyword session_id: A specific session from which to receive. This must be specified for a
279279 sessionful queue, otherwise it must be None. In order to receive messages from the next available
280280 session, set this to ~azure.servicebus.NEXT_AVAILABLE_SESSION.
281- :paramtype session_id: str or ~azure.servicebus.NEXT_AVAILABLE_SESSION
282- :keyword sub_queue: If specified, the subqueue this receiver will
283- connect to.
281+ :paramtype session_id: str or ~azure.servicebus.NEXT_AVAILABLE_SESSION or None
282+ :keyword sub_queue: If specified, the subqueue this receiver will connect to.
284283 This includes the DEAD_LETTER and TRANSFER_DEAD_LETTER queues, holds messages that can't be delivered to any
285284 receiver or messages that can't be processed.
286285 The default is None, meaning connect to the primary queue. Can be assigned values from `ServiceBusSubQueue`
287286 enum or equivalent string values "deadletter" and "transferdeadletter".
288- :paramtype sub_queue: str or ~azure.servicebus.ServiceBusSubQueue
287+ :paramtype sub_queue: str or ~azure.servicebus.ServiceBusSubQueue or None
289288 :keyword receive_mode: The mode with which messages will be retrieved from the entity. The two options
290289 are PEEK_LOCK and RECEIVE_AND_DELETE. Messages received with PEEK_LOCK must be settled within a given
291290 lock period before they will be removed from the queue. Messages received with RECEIVE_AND_DELETE
@@ -431,14 +430,13 @@ def get_subscription_receiver(
431430 :keyword session_id: A specific session from which to receive. This must be specified for a
432431 sessionful subscription, otherwise it must be None. In order to receive messages from the next available
433432 session, set this to ~azure.servicebus.NEXT_AVAILABLE_SESSION.
434- :paramtype session_id: str or ~azure.servicebus.NEXT_AVAILABLE_SESSION
435- :keyword sub_queue: If specified, the subqueue this receiver will
436- connect to.
433+ :paramtype session_id: str or ~azure.servicebus.NEXT_AVAILABLE_SESSION or None
434+ :keyword sub_queue: If specified, the subqueue this receiver will connect to.
437435 This includes the DEAD_LETTER and TRANSFER_DEAD_LETTER queues, holds messages that can't be delivered to any
438436 receiver or messages that can't be processed.
439437 The default is None, meaning connect to the primary queue. Can be assigned values from `ServiceBusSubQueue`
440438 enum or equivalent string values "deadletter" and "transferdeadletter".
441- :paramtype sub_queue: str or ~azure.servicebus.ServiceBusSubQueue
439+ :paramtype sub_queue: str or ~azure.servicebus.ServiceBusSubQueue or None
442440 :keyword receive_mode: The mode with which messages will be retrieved from the entity. The two options
443441 are PEEK_LOCK and RECEIVE_AND_DELETE. Messages received with PEEK_LOCK must be settled within a given
444442 lock period before they will be removed from the subscription. Messages received with RECEIVE_AND_DELETE
0 commit comments