Ramazan Elsunakev
Ramazan Elsunakev
Is there any interest in this from maintainers? Would a PR be welcome, or is there some discussion that should take place prior to that?
In my use case, getting the key requires making a call with the `kid` using async API bindings. I don't want to have to start up another loop in another...
Experiencing the same issue here
Would it be possible to mutate `self` inside of the `async move` block? I need to attach a value that needs to be awaited to one of the fields.
Thanks, that worked great!
@ekeyser There is actually a soft ETA, as per [this reply](https://github.com/aws/aws-cdk/issues/20197#issuecomment-1238122978).
Just FYI, the creator of Pydantic is currently working on [moving the core functionality to Rust](https://github.com/samuelcolvin/pydantic-core).
Perhaps something like this? ```python import asyncio from typing import Any, Coroutine, Generic, TypeVar, overload from httpx import AsyncClient, Client, Response ClientT = TypeVar("ClientT", bound=Client | AsyncClient) class API(Generic[ClientT]): def...
This would have to be done for every method that becomes `sync`/`async` based on the type of client passed in to `__init__`.
There really isn't a way to correctly type this without overloads. The solution suggested at the end of the question wouldn't really work, even if HKTs did make it into...