Move type parsers for config into own module

This commit is contained in:
Kovid Goyal
2021-05-24 22:29:28 +05:30
parent a4daa49f70
commit fe94f4cbb4
11 changed files with 392 additions and 372 deletions

View File

@@ -9,8 +9,9 @@ from gettext import gettext as _
from typing import Dict
from kitty.conf.definition import OptionOrAction, option_func
from kitty.conf.utils import python_string, to_color, to_color_or_none
from kitty.utils import positive_int
from kitty.conf.utils import (
positive_int, python_string, to_color, to_color_or_none
)
# }}}

View File

@@ -15,13 +15,12 @@ from typing import (
Sequence, Tuple, Union
)
from kitty.conf.utils import positive_float, positive_int
from kitty.fast_data_types import create_canvas
from kitty.typing import (
CompletedProcess, GRT_a, GRT_d, GRT_f, GRT_m, GRT_o, GRT_t, HandlerType
)
from kitty.utils import (
ScreenSize, find_exe, fit_image, positive_float, positive_int
)
from kitty.utils import ScreenSize, find_exe, fit_image
from .operations import cursor