Migrate type checker to ty

Much faster than mypy. Matches usage of ruff from same developer.
This commit is contained in:
Kovid Goyal
2026-07-04 09:16:05 +05:30
parent bb452f2066
commit a65b4c70a7
45 changed files with 218 additions and 238 deletions

View File

@@ -1369,8 +1369,11 @@ def read_bool_options(path: str = 'kitty/cli.py') -> Tuple[str, ...]:
def build_launcher(args: Options, launcher_dir: str = '.', bundle_type: str = 'source') -> str:
werror = '' if args.ignore_compiler_warnings else '-pedantic-errors -Werror'
cflags = f'-Wall {werror} -fpie {c_std}'.strip().split()
cflags = ['-Wall']
if not args.ignore_compiler_warnings:
cflags.extend(('-pedantic-errors', '-Werror'))
if c_std:
cflags.append(c_std)
cppflags = [define(f'WRAPPED_KITTENS=" {wrapped_kittens()} "')]
ldflags = shlex.split(os.environ.get('LDFLAGS', ''))
xxhash = xxhash_flags()