mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
Update codebase to Python 3.10 using pyupgrade
This commit is contained in:
@@ -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__':
|
||||
|
||||
Reference in New Issue
Block a user