aboutsummaryrefslogtreecommitdiffstats
path: root/python/sandcrawler/misc.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2023-01-04 19:37:07 -0800
committerBryan Newbold <bnewbold@archive.org>2023-01-04 19:37:07 -0800
commit5f73b6428f4b505880ef02429d57f11dc50d98e5 (patch)
tree744ecb99e69777c7eb902ade84dfb125367dddda /python/sandcrawler/misc.py
parent99cc7de073baee53bb97075377906743d364ab84 (diff)
downloadsandcrawler-5f73b6428f4b505880ef02429d57f11dc50d98e5.tar.gz
sandcrawler-5f73b6428f4b505880ef02429d57f11dc50d98e5.zip
mypy lint fixes
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