def signin_card(card: SigninCard) -> Attachment:
        """
        Returns an attachment for a signin card. For channels that don't natively support signin cards an alternative
        message will be rendered. Will raise a TypeError if 'card' argument is not a SigninCard.
        :param card:
        :return:
        """
        if not isinstance(card, SigninCard):
            raise TypeError('CardFactory.signin_card(): `card` argument is not an instance of an SigninCard, '
                            'unable to prepare attachment.')

        return Attachment(content_type=CardFactory.content_types.signin_card,
                          content=card)
def signin_card(card: SigninCard) -> Attachment:
        """
        Returns an attachment for a signin card. For channels that don't natively support signin cards an alternative
        message will be rendered. Will raise a TypeError if 'card' argument is not a SigninCard.
        :param card:
        :return:
        """
        if not isinstance(card, SigninCard):
            raise TypeError('CardFactory.signin_card(): `card` argument is not an instance of an SigninCard, '
                            'unable to prepare attachment.')

        return Attachment(content_type=CardFactory.content_types.signin_card,
                          content=card)
def signin_card ( card : SigninCard ) -> Attachment : if not isinstance ( card , SigninCard ) : raise TypeError ( 'CardFactory.signin_card(): `card` argument is not an instance of an SigninCard, ' 'unable to prepare attachment.' ) return Attachment ( content_type = CardFactory . content_types . signin_card , content = card )
Returns an attachment for a signin card. For channels that don't natively support signin cards an alternative
        message will be rendered. Will raise a TypeError if 'card' argument is not a SigninCard.
        :param card:
        :return:
Returns an attachment for a signin card . For channels that don t natively support signin cards an alternative message will be rendered . Will raise a TypeError if card argument is not a SigninCard . : param card : : return :