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 = {}