Skip to content

Commit 0de2be5

Browse files
author
Oluwafemi Adenuga
committed
2 parents 8addc08 + 2424c90 commit 0de2be5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

elorus/client.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def handle_file_download(self, response):
4949
filename = filename_kv[1]
5050
return filename, response.content
5151

52-
def _handle_response(self, response):
52+
def _handle_response(self, response: httpx.Response):
5353
if response.headers.get("Content-Type", "").lower() == "application/pdf":
5454
return self.handle_file_download(response)
5555

@@ -108,7 +108,7 @@ def _handle_response(self, response):
108108

109109
def _handle_request(
110110
self, method: str, path: str, payload: Optional[dict] = None, **kwargs
111-
):
111+
) -> httpx.Response:
112112
auth = self._get_auth()
113113
url = f"{self.base_url}/{self.api_version}/{path}"
114114
with httpx.Client(auth=auth) as client:
@@ -117,7 +117,7 @@ def _handle_request(
117117

118118

119119
class SubClient(Client):
120-
client = Client
120+
client: Client
121121

122122
def __init__(self, client: Client):
123123
self.client = client

0 commit comments

Comments
 (0)