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
Trying to compose a generic function that converts between different container types fails to type check correctly when using generics. Hopefully I am just using this wrong.
Bug report
What's wrong
Trying to compose a generic function that converts between different container types fails to type check correctly when using generics. Hopefully I am just using this wrong.
Code:
Running mypy:
How is that should be
I would have expected the return type for
test_generic2
to bereturns.io.IOResult[T4`-3, builtins.Exception]
System information
python
version: 3.9.12returns
version: 0.19.0mypy
version: 0.95.0hypothesis
version (if any):pytest
version (if any):The text was updated successfully, but these errors were encountered: