Skip to content

Commit

Permalink
Merge pull request #4 from lsundaralingam/bertong-communication-ident…
Browse files Browse the repository at this point in the history
…ity-redesign-personal

Updated formatting for method documentation
  • Loading branch information
beltr0n authored Jan 30, 2021
2 parents 1373bf5 + d2eec01 commit a74c808
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +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 tuple of a CommunicationUserIdentifier and a AccessToken.
:rtype: tuple of (~azure.communication.identity.CommunicationUserIdentifier, \
~azure.core.credentials.AccessToken)
:rtype:
tuple of (~azure.communication.identity.CommunicationUserIdentifier, ~azure.core.credentials.AccessToken)
"""
return self._identity_service_client.communication_identity.create(
cls=lambda pr, u, e: (CommunicationUserIdentifier(u.identity.id),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ async 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 tuple of a CommunicationUserIdentifier and a AccessToken.
:rtype: tuple of (~azure.communication.identity.CommunicationUserIdentifier, \
~azure.core.credentials.AccessToken)
:rtype:
tuple of (~azure.communication.identity.CommunicationUserIdentifier, ~azure.core.credentials.AccessToken)
"""
return await self._identity_service_client.communication_identity.create(
create_token_with_scopes=scopes,
Expand All @@ -120,7 +120,7 @@ async def delete_user(
# type: (...) -> None
"""Triggers revocation event for user and deletes all its data.
:param communication_user:\
:param communication_user:
Azure Communication User to delete
:type communication_user: ~azure.communication.identity.CommunicationUserIdentifier
:return: None
Expand Down

0 comments on commit a74c808

Please sign in to comment.