libraries/botbuilder-core/botbuilder/core/card_factory.py
def oauth_card(card: OAuthCard) -> Attachment:
        """
        Returns an attachment for an OAuth card used by the Bot Frameworks Single Sign On (SSO) service. Will raise a
        TypeError if 'card' argument is not a OAuthCard.
        :param card:
        :return:
        """
        if not isinstance(card, OAuthCard):
            raise TypeError('CardFactory.oauth_card(): `card` argument is not an instance of an OAuthCard, '
                            'unable to prepare attachment.')

        return Attachment(content_type=CardFactory.content_types.oauth_card,
                          content=card)
def oauth_card(card: OAuthCard) -> Attachment:
        """
        Returns an attachment for an OAuth card used by the Bot Frameworks Single Sign On (SSO) service. Will raise a
        TypeError if 'card' argument is not a OAuthCard.
        :param card:
        :return:
        """
        if not isinstance(card, OAuthCard):
            raise TypeError('CardFactory.oauth_card(): `card` argument is not an instance of an OAuthCard, '
                            'unable to prepare attachment.')

        return Attachment(content_type=CardFactory.content_types.oauth_card,
                          content=card)
Returns an attachment for an OAuth card used by the Bot Frameworks Single Sign On (SSO) service. Will raise a
        TypeError if 'card' argument is not a OAuthCard.
        :param card:
        :return: