Skip to content

Commit e987ad3

Browse files
committed
Add type annotations
1 parent 56dfd88 commit e987ad3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import time
1212
import unicodedata
1313
from enum import Enum
14-
from types import TracebackType
14+
from types import FrameType, TracebackType
1515
from typing import (
1616
Dict,
1717
Any,
@@ -611,7 +611,7 @@ def __exit__(
611611
sys.meta_path = self.orig_meta_path
612612
return False
613613

614-
def sigwinch_handler(self, signum, frame):
614+
def sigwinch_handler(self, signum: int, frame: Optional[FrameType]) -> None:
615615
old_rows, old_columns = self.height, self.width
616616
self.height, self.width = self.get_term_hw()
617617
cursor_dy = self.get_cursor_vertical_diff()
@@ -627,7 +627,7 @@ def sigwinch_handler(self, signum, frame):
627627
self.scroll_offset,
628628
)
629629

630-
def sigtstp_handler(self, signum, frame):
630+
def sigtstp_handler(self, signum: int, frame: Optional[FrameType]) -> None:
631631
self.scroll_offset = len(self.lines_for_display)
632632
self.__exit__(None, None, None)
633633
self.on_suspend()

0 commit comments

Comments
 (0)