From 7dbf7d369dbcf7a1f9530d8e9690179027eec7ba Mon Sep 17 00:00:00 2001 From: Michael Billings Date: Sun, 23 Aug 2026 16:57:18 -0400 Subject: [PATCH] Added type hints in sdk/sdk_v3/client.py --- 2025/sdk/sdk_v3/client.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/2025/sdk/sdk_v3/client.py b/2025/sdk/sdk_v3/client.py index 35f7cb86..bb5210da 100644 --- a/2025/sdk/sdk_v3/client.py +++ b/2025/sdk/sdk_v3/client.py @@ -1,8 +1,8 @@ import httpx -_client = None -_token = None -_base_url = "http://localhost:8000" +_client: httpx.Client | None = None +_token: str | None = None +_base_url: str = "http://localhost:8000" def set_credentials(token: str): @@ -21,15 +21,15 @@ def request(method: str, endpoint: str, **kwargs) -> httpx.Response: return response -def get(endpoint: str, params: dict = None) -> httpx.Response: +def get(endpoint: str, params: dict | None = None) -> httpx.Response: return request("GET", endpoint, params=params) -def post(endpoint: str, json: dict = None) -> httpx.Response: +def post(endpoint: str, json: dict | None = None) -> httpx.Response: return request("POST", endpoint, json=json) -def put(endpoint: str, json: dict = None) -> httpx.Response: +def put(endpoint: str, json: dict | None = None) -> httpx.Response: return request("PUT", endpoint, json=json)