def audio_card(card: AudioCard) -> Attachment:
        """
        Returns an attachment for an audio card. Will raise a TypeError if 'card' argument is not an AudioCard.
        :param card:
        :return:
        """
        if not isinstance(card, AudioCard):
            raise TypeError('CardFactory.audio_card(): `card` argument is not an instance of an AudioCard, '
                            'unable to prepare attachment.')

        return Attachment(content_type=CardFactory.content_types.audio_card,
                          content=card)
def audio_card(card: AudioCard) -> Attachment:
        """
        Returns an attachment for an audio card. Will raise a TypeError if 'card' argument is not an AudioCard.
        :param card:
        :return:
        """
        if not isinstance(card, AudioCard):
            raise TypeError('CardFactory.audio_card(): `card` argument is not an instance of an AudioCard, '
                            'unable to prepare attachment.')

        return Attachment(content_type=CardFactory.content_types.audio_card,
                          content=card)
def audio_card ( card : AudioCard ) -> Attachment : if not isinstance ( card , AudioCard ) : raise TypeError ( 'CardFactory.audio_card(): `card` argument is not an instance of an AudioCard, ' 'unable to prepare attachment.' ) return Attachment ( content_type = CardFactory . content_types . audio_card , content = card )
Returns an attachment for an audio card. Will raise a TypeError if 'card' argument is not an AudioCard.
        :param card:
        :return:
Returns an attachment for an audio card . Will raise a TypeError if card argument is not an AudioCard . : param card : : return :