mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-03 00:51:11 +03:00
timeout_session: Minor typing fix
This commit is contained in:
parent
872ab1b814
commit
f52ffce79f
@ -25,7 +25,9 @@ class TimeoutAdapter(HTTPAdapter):
|
|||||||
return super().send(*args, **kwargs)
|
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.
|
Create a new requests.Session and override the default HTTPAdapter with a TimeoutAdapter.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user