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

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

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