Created
October 15, 2016 15:50
-
-
Save squiddy/252e7b1dc6d6b6adf367ff3dd94e353d to your computer and use it in GitHub Desktop.
Failing test for https://github.com/python/mypy/issues/2256
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[case testBuiltinTupleValueAsExceptionType] | |
import typing | |
class BaseException: pass | |
class E1(BaseException): pass | |
exs = tuple([E1]) | |
try: pass | |
except exs as e1: | |
x = e1 # type: E1 | |
[builtins fixtures/exception.pyi] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment