More typing work

Also use a mypy based linter when editing
This commit is contained in:
Kovid Goyal
2020-03-08 11:02:14 +05:30
parent 9b32f18109
commit cc1336a616
43 changed files with 333 additions and 196 deletions

View File

@@ -6,7 +6,7 @@ import os
import shlex
import sys
from functools import lru_cache
from typing import Tuple
from typing import Callable, Dict, Tuple
from kittens.runner import all_kitten_names, get_kitten_cli_docs
@@ -33,7 +33,8 @@ taking the results from kitty's completion system and converting
them into something your shell will understand.
'''
parsers, serializers = {}, {}
parsers: Dict[str, Callable] = {}
serializers: Dict[str, Callable] = {}
def debug(*a, **kw):