

def __init__(self, paginator_class, objects, first_page=None, per_page=None, var_name=None, number=None, key=None, override_path=None):
    self.paginator = (paginator_class or DefaultPaginator)
    self.objects = template.Variable(objects)
    self.var_name = (objects if (var_name is None) else var_name)
    self.per_page_variable = None
    if (paginator_class is None):
        self.per_page = settings.PER_PAGE
    elif per_page.isdigit():
        self.per_page = int(per_page)
    else:
        self.per_page_variable = template.Variable(per_page)
    self.first_page_variable = None
    if (first_page is None):
        self.first_page = None
    elif first_page.isdigit():
        self.first_page = int(first_page)
    else:
        self.first_page_variable = template.Variable(first_page)
    self.page_number_variable = None
    if (number is None):
        self.page_number = 1
    else:
        try:
            self.page_number = int(number)
        except ValueError:
            self.page_number_variable = template.Variable(number)
    self.querystring_key_variable = None
    if (key is None):
        self.querystring_key = settings.PAGE_LABEL
    elif ((key[0] in ('"', "'")) and (key[(- 1)] == key[0])):
        self.querystring_key = key[1:(- 1)]
    else:
        self.querystring_key_variable = template.Variable(key)
    self.override_path_variable = None
    if (override_path is None):
        self.override_path = None
    elif ((override_path[0] in ('"', "'")) and (override_path[(- 1)] == override_path[0])):
        self.override_path = override_path[1:(- 1)]
    else:
        self.override_path_variable = template.Variable(override_path)

dataset/ETHPy150Open frankban/django-endless-pagination/endless_pagination/templatetags/endless.py PaginateNode.__init__/VarMisuse@83/107 `per_page`->`paginator_class`