mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 05:54:59 +02:00
Update codebase to Python 3.10 using pyupgrade
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
from typing import Dict
|
||||
|
||||
|
||||
def syntax_aliases(x: str) -> Dict[str, str]:
|
||||
def syntax_aliases(x: str) -> dict[str, str]:
|
||||
ans = {}
|
||||
for x in x.split():
|
||||
k, _, v = x.partition(':')
|
||||
|
||||
@@ -3,14 +3,13 @@
|
||||
|
||||
import sys
|
||||
from functools import partial
|
||||
from typing import List
|
||||
|
||||
from kitty.cli import CONFIG_HELP, CompletionSpec
|
||||
from kitty.conf.types import Definition
|
||||
from kitty.constants import appname
|
||||
|
||||
|
||||
def main(args: List[str]) -> None:
|
||||
def main(args: list[str]) -> None:
|
||||
raise SystemExit('Must be run as kitten diff')
|
||||
|
||||
definition = Definition(
|
||||
|
||||
Reference in New Issue
Block a user