Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
Fix MyPy Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cpressland committed Jun 29, 2023
1 parent 61ffd91 commit fa753b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions soteria/requests_retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

import requests

from requests.adapters import HTTPAdapter
from requests.packages.urllib3.util.retry import Retry
from requests.adapters import HTTPAdapter, Retry
from typing import Optional


def requests_retry_session(
retries: int = 3,
backoff_factor: float = 0.3,
status_forcelist: t.Tuple = (500, 502, 504),
session: requests.Session = None,
session: Optional[requests.Session] = None,
) -> requests.Session:
"""
Create a requests session with the given retry policy.
Expand Down

0 comments on commit fa753b8

Please sign in to comment.