@@ -4,7 +4,7 @@ Module knowledge.services.asyncio.base
44Functions
55---------
66
7- ` cached_getaddrinfo(host: str, *args, **kwargs) ‑> Any `
7+ ` cached_getaddrinfo(host: str, *args: Any , **kwargs: Any ) ‑> Any `
88: Cached address information.
99
1010 Parameters
@@ -94,7 +94,7 @@ Classes
9494 `auth_endpoint: str`
9595 : Authentication endpoint.
9696
97- `base_auth_url`
97+ `base_auth_url: str `
9898 : Base authentication URL.
9999
100100 `current_session: knowledge.services.session.RefreshableSession | knowledge.services.session.TimedSession | knowledge.services.session.PermanentSession | None`
@@ -110,10 +110,10 @@ Classes
110110 WacomServiceException
111111 Exception if no session is available.
112112
113- `service_base_url`
113+ `service_base_url: str `
114114 : Service endpoint.
115115
116- `service_endpoint`
116+ `service_endpoint: str `
117117 : Service endpoint.
118118
119119 `user_agent: str`
@@ -137,7 +137,7 @@ Classes
137137 If the session is already closed, the method will not perform any additional
138138 operations.
139139
140- `handle_token(self, force_refresh: bool = False, force_refresh_timeout: float = 120) ‑> Tuple[str, str]`
140+ `handle_token(self, force_refresh: bool = False, force_refresh_timeout: float = 120) ‑> Tuple[str, str | None ]`
141141 : Handles the token and refreshes it if needed.
142142
143143 Parameters
@@ -167,7 +167,7 @@ Classes
167167 Session. The session is stored in the token manager, and the client is using the session id for further
168168 calls.
169169
170- `logout(self)`
170+ `logout(self) ‑> None `
171171 : Logs out the user from the current session.
172172
173173 This method handles the removal of the current session from the token manager
@@ -239,7 +239,7 @@ Classes
239239 WacomServiceException
240240 Exception if the service returns HTTP error code.
241241
242- `use_session(self, session_id: str)`
242+ `use_session(self, session_id: str) ‑> None `
243243 : Use session.
244244 Parameters
245245 ----------
@@ -280,7 +280,7 @@ Classes
280280 Exception
281281 If an error occurs during the session closure operation.
282282
283- `delete(self, url: str, **kwargs) ‑> knowledge.services.asyncio.base.ResponseData`
283+ `delete(self, url: str, **kwargs: Any ) ‑> knowledge.services.asyncio.base.ResponseData`
284284 : Asynchronously performs an HTTP DELETE request.
285285
286286 This method sends a DELETE request to the specified URL with additional
@@ -301,7 +301,7 @@ Classes
301301 The response object resulting from the DELETE request. This
302302 provides access to the response data, status, and headers.
303303
304- `get(self, url: str, **kwargs) ‑> knowledge.services.asyncio.base.ResponseData`
304+ `get(self, url: str, **kwargs: Any ) ‑> knowledge.services.asyncio.base.ResponseData`
305305 : Asynchronously sends an HTTP GET request to the specified URL.
306306
307307 This method allows sending GET requests with optional additional parameters
@@ -322,7 +322,7 @@ Classes
322322 The response object resulting from the get-go request, containing status,
323323 headers, and body data.
324324
325- `patch(self, url: str, **kwargs) ‑> knowledge.services.asyncio.base.ResponseData`
325+ `patch(self, url: str, **kwargs: Any ) ‑> knowledge.services.asyncio.base.ResponseData`
326326 : Asynchronously sends a HTTP PATCH request to the specified URL.
327327
328328 This method is a coroutine that simplifies sending PATCH requests
@@ -345,7 +345,7 @@ Classes
345345 methods for accessing the content, status, and headers of the HTTP
346346 response.
347347
348- `post(self, url: str, **kwargs) ‑> knowledge.services.asyncio.base.ResponseData`
348+ `post(self, url: str, **kwargs: Any ) ‑> knowledge.services.asyncio.base.ResponseData`
349349 : Sends an asynchronous HTTP POST request to the specified URL with the given parameters.
350350
351351 This method uses the underlying `request` method to perform the HTTP POST
@@ -367,7 +367,7 @@ Classes
367367 ResponseData
368368 Represents the response object from the POST request.
369369
370- `put(self, url: str, **kwargs) ‑> knowledge.services.asyncio.base.ResponseData`
370+ `put(self, url: str, **kwargs: Any ) ‑> knowledge.services.asyncio.base.ResponseData`
371371 : Asynchronously performs an HTTP PUT request.
372372
373373 The method sends an HTTP PUT request to the specified URL with the given
@@ -385,7 +385,7 @@ Classes
385385 ResponseData
386386 The response object returned after the PUT request is completed.
387387
388- `request(self, method: Literal['GET', 'POST', 'PUT', 'DELETE', 'PATCH'], url: str, headers: Dict[str, str] | None = None, **kwargs) ‑> knowledge.services.asyncio.base.ResponseData`
388+ `request(self, method: Literal['GET', 'POST', 'PUT', 'DELETE', 'PATCH'], url: str, headers: Dict[str, str] | None = None, **kwargs: Any ) ‑> knowledge.services.asyncio.base.ResponseData`
389389 : Executes an HTTP request using the specified method, URL, headers, and additional options.
390390
391391 Parameters
@@ -424,7 +424,7 @@ Classes
424424 `close(self) ‑> None`
425425 : Release resolver
426426
427- `resolve(self, host: str, port: int = 0, family: int = 2)`
427+ `resolve(self, host: str, port: int = 0, family: int = 2) ‑> List[Dict[str, Any]] `
428428 : Resolves a hostname to a list of address information. This is an asynchronous
429429 method that fetches the address details for the given hostname. The result
430430 includes protocol, host address, port, and family information. The family
0 commit comments