mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-03 22:25:57 +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
|
|
@ -24,6 +24,7 @@ def find_differ() -> Optional[str]:
|
|||
return GIT_DIFF
|
||||
if shutil.which('diff'):
|
||||
return DIFF_DIFF
|
||||
return None
|
||||
|
||||
|
||||
def set_diff_command(opt: str) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue