diff options
author | Bryan Newbold <bnewbold@archive.org> | 2023-01-04 19:37:07 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2023-01-04 19:37:07 -0800 |
commit | 5f73b6428f4b505880ef02429d57f11dc50d98e5 (patch) | |
tree | 744ecb99e69777c7eb902ade84dfb125367dddda /python/sandcrawler/misc.py | |
parent | 99cc7de073baee53bb97075377906743d364ab84 (diff) | |
download | sandcrawler-5f73b6428f4b505880ef02429d57f11dc50d98e5.tar.gz sandcrawler-5f73b6428f4b505880ef02429d57f11dc50d98e5.zip |
mypy lint fixes
Diffstat (limited to 'python/sandcrawler/misc.py')
-rw-r--r-- | python/sandcrawler/misc.py | 2 |
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 |