Skip to content

Commit dd5c030

Browse files
committed
mypy types
1 parent 810cec8 commit dd5c030

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

gambaterm/run.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import contextlib
77
from itertools import count
88
from collections import deque
9-
from typing import Callable, Deque, Iterator
9+
from typing import Callable, Deque, Iterator, cast
1010

1111
import numpy as np
1212
import numpy.typing as npt
@@ -136,9 +136,9 @@ def select_blit(w: int, h: int) -> Callable[..., bytes]:
136136
if w >= console.WIDTH and h >= console.HEIGHT // 2:
137137
return blit
138138
if not no_sextants and w >= console.WIDTH // 2 and h >= console.HEIGHT // 3:
139-
return blit_sextant
139+
return cast(Callable[..., bytes], blit_sextant)
140140
if not no_octants:
141-
return blit_octant
141+
return cast(Callable[..., bytes], blit_octant)
142142
return blit
143143

144144
height, width = app_session.output.get_size()

0 commit comments

Comments
 (0)