Skip to content

Commit 72fb5dd

Browse files
committed
work around Final "constants" in curses module
1 parent 13ff4b9 commit 72fb5dd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/features/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -413,11 +413,11 @@ def _curses_keyname(self, k):
413413
return KEYS_CURSES.get(k, b'')
414414

415415
def _curses_update_lines_cols(self):
416-
curses.LINES = self.screen.height
417-
curses.COLS = self.screen.width
416+
curses.LINES = self.screen.height # type: ignore[misc]
417+
curses.COLS = self.screen.width # type: ignore[misc]
418418

419419
def _curses_start_color(self):
420-
curses.COLORS = self._n_colors
420+
curses.COLORS = self._n_colors # type: ignore[misc]
421421

422422
def _curses_can_change_color(self):
423423
return self._can_change_color

0 commit comments

Comments
 (0)