Skip to content

Commit 2b363a2

Browse files
committed
fixed linting issues
1 parent 9feac04 commit 2b363a2

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_phone_numbers_client.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ def from_connection_string(
9999
def begin_purchase_phone_numbers(
100100
self,
101101
search_id, # type: str
102-
consent_to_not_resell_numbers=False, # type: bool
102+
consentdnr=False, # type: bool
103103
**kwargs # type: Any
104104
):
105105
# type: (...) -> LROPoller[None]
106106
"""Purchases phone numbers.
107107
108108
:param search_id: The search id.
109109
:type search_id: str
110-
:param consent_to_not_resell_numbers: The consent Provided To Not Resell Phone Numbers.
110+
:param consent_to_not_resell_numbers/consentdnr: The consent Provided To Not Resell Phone Numbers.
111111
:type consent_to_not_resell_numbers: bool
112112
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
113113
:keyword polling: Pass in True if you'd like the LROBasePolling polling method,
@@ -119,8 +119,7 @@ def begin_purchase_phone_numbers(
119119
"""
120120
purchase_request = PhoneNumberPurchaseRequest(
121121
search_id=search_id,
122-
consent_to_not_resell_numbers=
123-
consent_to_not_resell_numbers
122+
consent_to_not_resell_numbers=consentdnr
124123
)
125124

126125
polling_interval = kwargs.pop(

sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/aio/_phone_numbers_client_async.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ def from_connection_string(
9999
async def begin_purchase_phone_numbers(
100100
self,
101101
search_id, # type: str
102-
consent_to_not_resell_numbers=False, # type: bool
102+
consentdnr=False, # type: bool
103103
**kwargs # type: Any
104104
):
105105
# type: (...) -> AsyncLROPoller[None]
106106
"""Purchases phone numbers.
107107
108108
:param search_id: The search id.
109109
:type search_id: str
110-
:param consent_to_not_resell_numbers: The consent Provided To Not Resell Phone Numbers.
110+
:param consent_to_not_resell_numbers/consentdnr: The consent Provided To Not Resell Phone Numbers.
111111
:type consent_to_not_resell_numbers: bool
112112
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
113113
:keyword polling: Pass in True if you'd like the LROBasePolling polling method,
@@ -117,7 +117,7 @@ async def begin_purchase_phone_numbers(
117117
for LRO operations if no Retry-After header is present.
118118
:rtype: ~azure.core.polling.AsyncLROPoller[None]
119119
"""
120-
purchase_request = PhoneNumberPurchaseRequest(search_id=search_id, consent_to_not_resell_numbers=consent_to_not_resell_numbers)
120+
purchase_request = PhoneNumberPurchaseRequest(search_id=search_id, consent_to_not_resell_numbers=consentdnr)
121121

122122
polling_interval = kwargs.pop(
123123
'polling_interval', _DEFAULT_POLLING_INTERVAL_IN_SECONDS)

0 commit comments

Comments
 (0)