libraries/botbuilder-core/botbuilder/core/card_factory.py
def adaptive_card(card: dict) -> Attachment:
        """
        Returns an attachment for an adaptive card. The attachment will contain the card and the
        appropriate 'contentType'. Will raise a TypeError if the 'card' argument is not an
        dict.
        :param card:
        :return:
        """
        if not type(card) == dict:
            raise TypeError('CardFactory.adaptive_card(): `card` argument is not of type dict, unable to prepare '
                            'attachment.')

        return Attachment(content_type=CardFactory.content_types.adaptive_card,
                          content=card)
def adaptive_card(card: dict) -> Attachment:
        """
        Returns an attachment for an adaptive card. The attachment will contain the card and the
        appropriate 'contentType'. Will raise a TypeError if the 'card' argument is not an
        dict.
        :param card:
        :return:
        """
        if not type(card) == dict:
            raise TypeError('CardFactory.adaptive_card(): `card` argument is not of type dict, unable to prepare '
                            'attachment.')

        return Attachment(content_type=CardFactory.content_types.adaptive_card,
                          content=card)
def adaptive_card ( card : dict ) -> Attachment : if not type ( card ) == dict : raise TypeError ( 'CardFactory.adaptive_card(): `card` argument is not of type dict, unable to prepare ' 'attachment.' ) return Attachment ( content_type = CardFactory . content_types . adaptive_card , content = card )
Returns an attachment for an adaptive card. The attachment will contain the card and the
        appropriate 'contentType'. Will raise a TypeError if the 'card' argument is not an
        dict.
        :param card:
        :return:
Returns an attachment for an adaptive card . The attachment will contain the card and the appropriate contentType . Will raise a TypeError if the card argument is not an dict . : param card : : return :