Skip to content

Commit

Permalink
lint fix attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
novitae committed Jan 27, 2025
1 parent d8dbb84 commit 040d8ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions curl_cffi/requests/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def __init__(

def _parse_response(self, curl, buffer, header_buffer, default_encoding) -> R:
c = curl
rsp = self.response_class(c)
rsp = cast(R, self.response_class(c))
rsp.url = cast(bytes, c.getinfo(CurlInfo.EFFECTIVE_URL)).decode()
if buffer:
rsp.content = buffer.getvalue()
Expand Down Expand Up @@ -848,7 +848,7 @@ async def ws_connect(
curl.setopt(CurlOpt.CONNECT_ONLY, 2) # https://curl.se/docs/websocket.html

await self.loop.run_in_executor(None, curl.perform)
return AsyncWebSocket(self[R], curl, autoclose=autoclose)
return AsyncWebSocket(cast(AsyncSession[R], self), curl, autoclose=autoclose)

async def request(
self,
Expand Down

0 comments on commit 040d8ea

Please sign in to comment.