mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-28 03:01:57 +02:00
And again with mypy
This commit is contained in:
@@ -7,7 +7,7 @@ from collections import defaultdict
|
|||||||
from collections.abc import Generator, Sequence
|
from collections.abc import Generator, Sequence
|
||||||
from contextlib import contextmanager, suppress
|
from contextlib import contextmanager, suppress
|
||||||
from itertools import count
|
from itertools import count
|
||||||
from typing import TYPE_CHECKING, DefaultDict, Optional
|
from typing import TYPE_CHECKING, DefaultDict, Optional, TypedDict
|
||||||
|
|
||||||
import kitty.fast_data_types as fast_data_types
|
import kitty.fast_data_types as fast_data_types
|
||||||
|
|
||||||
@@ -15,10 +15,6 @@ from .constants import handled_signals, is_freebsd, is_macos, kitten_exe, kitty_
|
|||||||
from .types import run_once
|
from .types import run_once
|
||||||
from .utils import cmdline_for_hold, log_error, which
|
from .utils import cmdline_for_hold, log_error, which
|
||||||
|
|
||||||
try:
|
|
||||||
from typing import TypedDict
|
|
||||||
except ImportError:
|
|
||||||
TypedDict = dict
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from .window import CwdRequest
|
from .window import CwdRequest
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user