You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I may be missing something embarrassingly obvious here, but I'm getting a consistent import error for AsyncGenerator using 3.6.0. All other imports are working fine, as far as I can tell.
It's listed among the group of imports that are only added if their non-generic counterparts are not in stdlib:
# The following are added depending on presence # of their non-generic counterparts in stdlib: # Awaitable, # AsyncIterator, # AsyncIterable, # Coroutine, # Collection, # AsyncGenerator, # AsyncContextManager
Is this possibly a local issue?
The text was updated successfully, but these errors were encountered:
In 3.6.0, you will get the version of typing that was bundled with 3.6.0, not the latest version maintained in this repo. I haven't checked, but I think we missed AsyncGenerator initially and added it later in the 3.6 series.
Two possible workarounds:
Upgrade to a later version of 3.6
Use if TYPE_CHECKING: from typing import AsyncGenerator
I may be missing something embarrassingly obvious here, but I'm getting a consistent import error for AsyncGenerator using 3.6.0. All other imports are working fine, as far as I can tell.
It's listed among the group of imports that are only added if their non-generic counterparts are not in stdlib:
# The following are added depending on presence # of their non-generic counterparts in stdlib: # Awaitable, # AsyncIterator, # AsyncIterable, # Coroutine, # Collection, # AsyncGenerator, # AsyncContextManager
Is this possibly a local issue?
The text was updated successfully, but these errors were encountered: