File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
services/web/server/src/simcore_service_webserver/fogbugz Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 55
66import json
77import logging
8+ from typing import Any
89
910import httpx
1011from aiohttp import web
@@ -36,7 +37,7 @@ def __init__(
3637 self ._api_token = api_token
3738 self ._base_url = base_url
3839
39- async def _make_api_request (self , json_payload : dict ) -> dict :
40+ async def _make_api_request (self , json_payload : dict [ str , Any ] ) -> dict [ str , Any ] :
4041 """Make a request to Fogbugz API with common formatting"""
4142 # Fogbugz requires multipart/form-data with stringified JSON
4243 files = {"request" : (None , json .dumps (json_payload ), _JSON_CONTENT_TYPE )}
@@ -45,7 +46,8 @@ async def _make_api_request(self, json_payload: dict) -> dict:
4546
4647 response = await self ._client .post (url , files = files )
4748 response .raise_for_status ()
48- return response .json ()
49+ response_data : dict [str , Any ] = response .json ()
50+ return response_data
4951
5052 async def create_case (self , data : FogbugzCaseCreate ) -> str :
5153 """Create a new case in Fogbugz"""
You can’t perform that action at this time.
0 commit comments