Browse Source

Fix some minor typing errors

pull/8243/head
Rapptz 3 years ago
parent
commit
2067819b75
  1. 2
      discord/http.py
  2. 4
      discord/template.py

2
discord/http.py

@ -534,6 +534,8 @@ class HTTPClient:
else:
raise HTTPException(resp, 'failed to get asset')
raise RuntimeError('Unreachable')
# state management
async def close(self) -> None:

4
discord/template.py

@ -24,7 +24,7 @@ DEALINGS IN THE SOFTWARE.
from __future__ import annotations
from typing import Any, Optional, TYPE_CHECKING
from typing import Any, Optional, TYPE_CHECKING, List
from .utils import parse_time, _bytes_to_base64_data, MISSING
from .guild import Guild
@ -81,7 +81,7 @@ class _PartialTemplateState:
def _get_guild(self, id):
return self.__state._get_guild(id)
async def query_members(self, **kwargs: Any) -> list:
async def query_members(self, **kwargs: Any) -> List[Any]:
return []
def __getattr__(self, attr):

Loading…
Cancel
Save