mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
Replace isort with ruff
This commit is contained in:
@@ -7,9 +7,7 @@ import os
|
||||
import pprint
|
||||
import re
|
||||
import textwrap
|
||||
from typing import (
|
||||
Any, Callable, Dict, Iterator, List, Set, Tuple, Union, get_type_hints
|
||||
)
|
||||
from typing import Any, Callable, Dict, Iterator, List, Set, Tuple, Union, get_type_hints
|
||||
|
||||
from kitty.conf.types import Definition, MultiOption, Option, unset
|
||||
from kitty.types import _T
|
||||
|
||||
@@ -7,10 +7,7 @@ import textwrap
|
||||
import typing
|
||||
from functools import lru_cache
|
||||
from importlib import import_module
|
||||
from typing import (
|
||||
Any, Callable, Dict, Iterable, Iterator, List, Match, Optional, Set, Tuple,
|
||||
Union, cast
|
||||
)
|
||||
from typing import Any, Callable, Dict, Iterable, Iterator, List, Match, Optional, Set, Tuple, Union, cast
|
||||
|
||||
import kitty.conf.utils as generic_parsers
|
||||
from kitty.constants import website_url
|
||||
@@ -47,6 +44,7 @@ def expand_opt_references(conf_name: str, text: str) -> str:
|
||||
@run_once
|
||||
def ref_map() -> Dict[str, Dict[str, str]]:
|
||||
import json
|
||||
|
||||
from ..fast_data_types import get_docs_ref_map
|
||||
ans: Dict[str, Dict[str, str]] = json.loads(get_docs_ref_map())
|
||||
return ans
|
||||
|
||||
@@ -7,8 +7,21 @@ import shlex
|
||||
import sys
|
||||
from contextlib import contextmanager
|
||||
from typing import (
|
||||
Any, Callable, Dict, Generator, Generic, Iterable, Iterator, List, NamedTuple,
|
||||
Optional, Sequence, Set, Tuple, TypeVar, Union,
|
||||
Any,
|
||||
Callable,
|
||||
Dict,
|
||||
Generator,
|
||||
Generic,
|
||||
Iterable,
|
||||
Iterator,
|
||||
List,
|
||||
NamedTuple,
|
||||
Optional,
|
||||
Sequence,
|
||||
Set,
|
||||
Tuple,
|
||||
TypeVar,
|
||||
Union,
|
||||
)
|
||||
|
||||
from ..constants import _plat, is_macos
|
||||
|
||||
Reference in New Issue
Block a user