cannot apply @asynccontextmanager
to a function that uses TypeVarTuple
#17278
Labels
@asynccontextmanager
to a function that uses TypeVarTuple
#17278
I think this is a bug in mypy.
mypy-play.net
I want to properly annotate a generic async context manager to preserve the types of the *args in the returned value.
but this snippet generate the following error
The function types - without the
@asynccontextmanager
- seems to work correctlyThe text was updated successfully, but these errors were encountered: