Fix type annotations to adhere to latest pyright release

This commit is contained in:
Josh authored and GitHub committed 2022-06-12 15:30:45 -04:00
1 parent 334ef1d7fa
commit c9f777c873
14 files changed
+50 -47

No files matched your search

+2 -6
View File
@@ -27,13 +27,9 @@ from typing import Dict, List, Optional, TYPE_CHECKING, Any, Tuple, Union
if TYPE_CHECKING:
from aiohttp import ClientResponse, ClientWebSocketResponse
from requests import Response
try:
from requests import Response
_ResponseType = Union[ClientResponse, Response]
except ModuleNotFoundError:
_ResponseType = ClientResponse
_ResponseType = Union[ClientResponse, Response]
from .interactions import Interaction