| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| import httpx | ||
| from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream | ||
| from pydantic import BaseModel | ||
| from typing_extensions import Self |
There was a problem hiding this comment.
Isn't this in typing as well?
Sorry, something went wrong.
There was a problem hiding this comment.
my bad, it's in typing in 3.11 not in 3.10
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
You can see that session assumes ClientSession type now.
The real problem is that AbstractAsyncContextManager is a generic, so it expects some type as an argument. We can't really add BaseClient as that type, because the return type from the ClientSession __aexit__ is not BaseClient, it's actually ClientSession.