aboutsummaryrefslogtreecommitdiffstats
path: root/python/sandcrawler/misc.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/sandcrawler/misc.py')
-rw-r--r--python/sandcrawler/misc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/sandcrawler/misc.py b/python/sandcrawler/misc.py
index 4ab9082..4e37036 100644
--- a/python/sandcrawler/misc.py
+++ b/python/sandcrawler/misc.py
@@ -281,7 +281,7 @@ def requests_retry_session(
retries: int = 10,
backoff_factor: int = 1,
status_forcelist: List[int] = [500, 502, 504],
- session: requests.Session = None,
+ session: Optional[requests.Session] = None,
) -> requests.Session:
"""
From: https://www.peterbe.com/plog/best-practice-with-retries-with-requests