diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py index ea1756236c4e..0b2f0d88cd3a 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py @@ -101,7 +101,8 @@ def create_user_with_token( List of scopes to be added to the token. :type scopes: list[str or ~azure.communication.identity.models.CommunicationTokenScope] :return: A CommunicationUser and a CommunicationIdentityToken tuple. - :rtype: tuple of (~azure.communication.identity.CommunicationUser, ~azure.communication.identity.CommunicationIdentityToken) + :rtype: tuple of (~azure.communication.identity.CommunicationUserIdentifier, + ~azure.communication.identity.CommunicationUserToken) """ return self._identity_service_client.communication_identity.create( cls=lambda pr, u, e: CommunicationUserIdentifier(u.id), diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py index 0d621718aafd..37489fb42548 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py @@ -102,10 +102,10 @@ async def create_user_with_token( :param scopes: List of scopes to be added to the token. - :type scopes: list[str or - ~azure.communication.identity.models.CommunicationTokenScope] + :type scopes: list[str or ~azure.communication.identity.models.CommunicationTokenScope] :return: A tuple of a CommunicationUserIdentifier and a CommunicationUserToken. - :rtype: tuple of (~azure.communication.identity.CommunicationUserIdentifier, ~azure.communication.identity.CommunicationUserToken) + :rtype: tuple of (~azure.communication.identity.CommunicationUserIdentifier, + ~azure.communication.identity.CommunicationUserToken) """ return await self._identity_service_client.communication_identity.create( create_token_with_scopes=scopes, @@ -144,8 +144,7 @@ async def issue_token( :type user: ~azure.communication.identity.CommunicationUserIdentifier :param scopes: List of scopes to be added to the token. - :type scopes: list[str or - ~azure.communication.identity.models.CommunicationTokenScope] + :type scopes: list[str or ~azure.communication.identity.models.CommunicationTokenScope] :return: CommunicationUserToken :rtype: ~azure.communication.identity.CommunicationUserToken """