]> git.ipfire.org Git - thirdparty/tornado.git/commit
websocket: Add type annotations
authorBen Darnell <ben@bendarnell.com>
Mon, 1 Oct 2018 02:20:00 +0000 (22:20 -0400)
committerBen Darnell <ben@bendarnell.com>
Mon, 1 Oct 2018 02:20:00 +0000 (22:20 -0400)
commitefcb7d83c0c362b3079b56db256b0e0a67eed6ad
treee6827ef6bb8a9169bc2a7e4aae738e4dea114c6f
parent30bbccbb75580ea7e62ab135e4880ea5eacc6c70
websocket: Add type annotations

This is more invasive than usual because it defines a Protocol to be
shared between WebSocketHandler and WebSocketClientConnection (and
fixes a bug: an uncaught exception in the callback mode of
WebSocketClientConnection would fail due to the missing log_exception
method).

Fixes #2181
setup.cfg
tornado/simple_httpclient.py
tornado/websocket.py