diff --git a/requests_html.py b/requests_html.py
index 03f0edf..cd341de 100644
--- a/requests_html.py
+++ b/requests_html.py
@@ -431,12 +431,14 @@ class HTML(BaseParser):
def __repr__(self) -> str:
return f""
- def next(self, fetch: bool = False, next_symbol: _NextSymbol = DEFAULT_NEXT_SYMBOL) -> _Next:
+ def next(self, fetch: bool = False, next_symbol: _NextSymbol = None) -> _Next:
"""Attempts to find the next page, if there is one. If ``fetch``
is ``True`` (default), returns :class:`HTML ` object of
next page. If ``fetch`` is ``False``, simply returns the next URL.
"""
+ if next_symbol is None:
+ next_symbol = DEFAULT_NEXT_SYMBOL
def get_next():
candidates = self.find('a', containing=next_symbol)