1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 15:57:14 +03:00

timeout_session: Minor typing fix

This commit is contained in:
Athanasius 2022-12-22 13:45:37 +00:00
parent 872ab1b814
commit f52ffce79f
No known key found for this signature in database
GPG Key ID: 772697E181BB2767

View File

@ -25,7 +25,9 @@ class TimeoutAdapter(HTTPAdapter):
return super().send(*args, **kwargs)
def new_session(timeout: int = REQUEST_TIMEOUT, session: requests.Session = None) -> requests.Session:
def new_session(
timeout: int = REQUEST_TIMEOUT, session: requests.Session | None = None
) -> requests.Session:
"""
Create a new requests.Session and override the default HTTPAdapter with a TimeoutAdapter.