Skip to content

Commit

Permalink
Merge pull request Azure#25 from beltr0n/bertong-communication-identi…
Browse files Browse the repository at this point in the history
…ty-redesign

pylint fixes
  • Loading branch information
lsundaralingam authored Jan 25, 2021
2 parents 8583748 + 02d2112 commit 5e096b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
"""
Expand Down

0 comments on commit 5e096b8

Please sign in to comment.