def __init__(self, default_limit=None, max_limit=None):
        self._default_limit = utils.if_none(default_limit, max_limit)
        self._max_limit = max_limit

        if self._max_limit is not None:
            assert \
                self._default_limit <= self._max_limit, \
                "default limit exceeds max limit"
dataset/ETHPy150Open 4Catalyzer/flask-resty/flask_resty/pagination.py/LimitPagination.__init__/original