def get_attrs(cls):
    """
    Returns all paxb attributes of a class decorated with :py:func:`paxb.model` decorator.

    :param cls: :py:func:`paxb.model` decorated class
    :return: paxb class attributes
    """

    if not isinstance(cls, type):
        raise TypeError("Passed object must be a class")

    attrs = getattr(cls, '__paxb_attrs__', None)
    if attrs is None:
        raise TypeError("{cls!r} is not a paxb model-decorated class.".format(cls=cls))

    return attrs