Looks like I didn't test this interactively.  The EventHook() code was broken; it asked for the current thread state when there was none. Fixed by using the saved event_tstate.
Looks like I didn't test this interactively.  The EventHook() code was
broken; it asked for the current thread state when there was none.
Fixed by using the saved event_tstate.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator