From fb4670bd43122dc93a4812cd4126c107fcb6d835 Mon Sep 17 00:00:00 2001 From: "Ron v. Milman" Date: Thu, 18 Aug 2022 14:10:58 +0300 Subject: [PATCH] added Response type hint to API's request method --- woocommerce/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/woocommerce/api.py b/woocommerce/api.py index a97c901..1228798 100644 --- a/woocommerce/api.py +++ b/woocommerce/api.py @@ -9,7 +9,7 @@ __author__ = "Claudio Sanches @ Automattic" __license__ = "MIT" -from requests import request +from requests import request, Response from json import dumps as jsonencode from time import time from woocommerce.oauth import OAuth @@ -62,7 +62,7 @@ def __get_oauth_url(self, url, method, **kwargs): return oauth.get_oauth_url() - def __request(self, method, endpoint, data, params=None, **kwargs): + def __request(self, method, endpoint, data, params=None, **kwargs) -> Response: """ Do requests """ if params is None: params = {}