chore: format

pull/67/head
yupix 1 year ago
parent c543204c99
commit bbc2ea041e
No known key found for this signature in database
GPG Key ID: 2FF705F5C56D9C06

@ -1,6 +1,6 @@
from __future__ import annotations
import json
import json
import logging
import re
import sys
@ -70,13 +70,17 @@ class HTTPClient:
return self._session
async def request(
self, route: Route, auth: bool = False, remove_none: bool = True, lower:bool=True, **kwargs
self,
route: Route,
auth: bool = False,
remove_none: bool = True,
lower: bool = True,
**kwargs,
) -> R:
headers: dict[str, str] = {
'User-Agent': self.user_agent,
}
if 'json' in kwargs:
headers['Content-Type'] = 'application/json'
kwargs['json'] = kwargs.pop('json')

@ -13,5 +13,6 @@ class IChannelLite(TypedDict):
is_following: bool
user_id: str
class IChannel(IChannelLite):
has_unread_note: bool

Loading…
Cancel
Save