diff --git a/sdk/mixedreality/azure-mixedreality-authentication/azure/mixedreality/authentication/_shared/aio/mixedreality_account_key_credential.py b/sdk/mixedreality/azure-mixedreality-authentication/azure/mixedreality/authentication/_shared/aio/mixedreality_account_key_credential.py index 814cab6e2082a..ffc23fea396e6 100644 --- a/sdk/mixedreality/azure-mixedreality-authentication/azure/mixedreality/authentication/_shared/aio/mixedreality_account_key_credential.py +++ b/sdk/mixedreality/azure-mixedreality-authentication/azure/mixedreality/authentication/_shared/aio/mixedreality_account_key_credential.py @@ -49,6 +49,6 @@ async def __aexit__(self, exc_type, exc_value, traceback) -> None: def _add_years(date_to_update, years): try: - return date_to_update.replace(year = date_to_update.year + years) + return date_to_update.replace(year=date_to_update.year + years) except ValueError: return date_to_update + (date(date_to_update.year + years, 1, 1) - date(date_to_update.year, 1, 1)) diff --git a/sdk/mixedreality/azure-mixedreality-authentication/azure/mixedreality/authentication/_shared/mixedreality_account_key_credential.py b/sdk/mixedreality/azure-mixedreality-authentication/azure/mixedreality/authentication/_shared/mixedreality_account_key_credential.py index 0fa8566e6baf9..c5d175eb40dde 100644 --- a/sdk/mixedreality/azure-mixedreality-authentication/azure/mixedreality/authentication/_shared/mixedreality_account_key_credential.py +++ b/sdk/mixedreality/azure-mixedreality-authentication/azure/mixedreality/authentication/_shared/mixedreality_account_key_credential.py @@ -37,6 +37,6 @@ def get_token(self, *scopes, **kwargs): #pylint: disable=unused-argument def _add_years(date_to_update, years): try: - return date_to_update.replace(year = date_to_update.year + years) + return date_to_update.replace(year=date_to_update.year + years) except ValueError: return date_to_update + (date(date_to_update.year + years, 1, 1) - date(date_to_update.year, 1, 1)) diff --git a/sdk/mixedreality/azure-mixedreality-authentication/azure/mixedreality/authentication/aio/_client_async.py b/sdk/mixedreality/azure-mixedreality-authentication/azure/mixedreality/authentication/aio/_client_async.py index d63475e1898ca..1a15772035114 100644 --- a/sdk/mixedreality/azure-mixedreality-authentication/azure/mixedreality/authentication/aio/_client_async.py +++ b/sdk/mixedreality/azure-mixedreality-authentication/azure/mixedreality/authentication/aio/_client_async.py @@ -94,7 +94,7 @@ async def get_token(self, **kwargs) -> "AccessToken": :rtype: :class:`azure.core.credentials.AccessToken` """ token_request_options = TokenRequestOptions() - token_request_options.client_request_id=generate_cv_base() + token_request_options.client_request_id = generate_cv_base() response = await self._client.get_token( self._account_id,