From 9a757708ac7e0ff4d6226f975bd4fa692a64aa59 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Fri, 10 Feb 2023 19:41:58 +0000 Subject: [PATCH] Make the get_session func of the Service class static --- devine/core/service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devine/core/service.py b/devine/core/service.py index 198d502..295ee76 100644 --- a/devine/core/service.py +++ b/devine/core/service.py @@ -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.