Skip to content

Instantly share code, notes, and snippets.

@squiddy
Created October 15, 2016 15:50
Show Gist options
  • Save squiddy/252e7b1dc6d6b6adf367ff3dd94e353d to your computer and use it in GitHub Desktop.
Save squiddy/252e7b1dc6d6b6adf367ff3dd94e353d to your computer and use it in GitHub Desktop.
[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