mypy: Fix several Optional typing errors.

This commit is contained in:
Tim Abbott
2017-02-10 20:26:24 -08:00
parent 6d00d4d2b1
commit b81fd407e8
10 changed files with 17 additions and 15 deletions

View File

@@ -14,7 +14,7 @@ from typing import Optional
# setup, which we might want if we move Tornado to run in a daemon
# rather than via screen).
def interactive_debug(sig, frame):
# type: (int, Optional[FrameType]) -> None
# type: (int, FrameType) -> None
"""Interrupt running process, and provide a python prompt for
interactive debugging."""
d = {'_frame': frame} # Allow access to frame object.