Make the get_session func of the Service class static

This commit is contained in:
rlaphoenix 2023-02-10 19:41:58 +00:00
parent 09e29cb2e1
commit 9a757708ac
1 changed files with 2 additions and 1 deletions

View File

@ -65,7 +65,8 @@ class Service(metaclass=ABCMeta):
# Otherwise, the base service code (if any) of the function will be executed on call.
# The functions will be executed in shown order.
def get_session(self) -> requests.Session:
@staticmethod
def get_session() -> requests.Session:
"""
Creates a Python-requests Session, adds common headers
from config, cookies, retry handler, and a proxy if available.