8000 added Response type hint to API's request method · MilmanRonV/wc-api-python@fb4670b · GitHub
[go: up one dir, main page]

Skip to content

Commit fb4670b

Browse files
committed
added Response type hint to API's request method
1 parent 003e299 commit fb4670b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

woocommerce/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
__author__ = "Claudio Sanches @ Automattic"
1010
__license__ = "MIT"
1111

12-
from requests import request
12+
from requests import request, Response
1313
from json import dumps as jsonencode
1414
from time import time
1515
from woocommerce.oauth import OAuth
@@ -62,7 +62,7 @@ def __get_oauth_url(self, url, method, **kwargs):
6262

6363
return oauth.get_oauth_url()
6464

65-
def __request(self, method, endpoint, data, params=None, **kwargs):
65+
def __request(self, method, endpoint, data, params=None, **kwargs) -> Response:
6666
""" Do requests """
6767
if params is None:
6868
params = {}

0 commit comments

Comments
 (0)
0