Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Unconstrained type variable combined with isinstance() doesn't seem to work #1539
Not sure this is a bug or not...
This gets errors on both
Why? The isinstance() checks look like they should provide sufficient guards.
The reason the example doesn't work is that after the
To make the example work, mypy could perhaps somehow keep track of the fact that
referenced this issue
May 18, 2016
Actually this particular program really is invalid because
If you change both return statements to