mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 06:36:24 +00:00
mypy: Turn on return value checks
Its a shame GvR is married to "return None" https://github.com/python/mypy/issues/7511
This commit is contained in:
parent
5cb36a4632
commit
4494ddd8ff
52 changed files with 124 additions and 49 deletions
|
|
@ -157,6 +157,7 @@ class Table:
|
|||
def current_codepoint(self) -> Optional[int]:
|
||||
if self.codepoints:
|
||||
return self.codepoints[self.current_idx]
|
||||
return None
|
||||
|
||||
def set_codepoints(self, codepoints: List[int], mode: str = HEX, current_idx: int = 0) -> None:
|
||||
self.codepoints = codepoints
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue