Update codebase to Python 3.10 using pyupgrade

This commit is contained in:
Kovid Goyal
2025-01-10 22:31:41 +05:30
parent 922d08516b
commit da1626090a
126 changed files with 1739 additions and 1764 deletions

View File

@@ -2,7 +2,6 @@
# License: GPL v3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net>
import sys
from typing import List, Optional
from kitty.conf.types import Definition
from kitty.types import run_once
@@ -222,7 +221,7 @@ environment variable.
egr() # }}}
def main(args: List[str]) -> Optional[str]:
def main(args: list[str]) -> str | None:
raise SystemExit('This should be run as kitten ssh')
if __name__ == '__main__':