Skip to content

Commit e604802

Browse files
refactor: type annotation
1 parent 60cf7ab commit e604802

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

squarecloud/http/http_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import aiohttp
66

77
from .endpoints import Endpoint, Router
8-
from ..data import AppData
98
from ..errors import (
109
NotFoundError,
1110
RequestError,
@@ -26,7 +25,7 @@ def __init__(self, data: RawResponseData, route: Router) -> None:
2625
self.status: Literal['success', 'error'] = data.get('status')
2726
self.code: int = data.get('code')
2827
self.message: str = data.get('message')
29-
self.response: dict[str, Any] = data.get('response')
28+
self.response: dict[str, Any] | list[Any] = data.get('response')
3029

3130
def __repr__(self):
3231
return f'{Response.__name__}({self.status})'

0 commit comments

Comments
 (0)