mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-10 18:48:54 +02:00
Make mypy 1.4 happy
This commit is contained in:
@@ -16,18 +16,11 @@ orig_spawn_passfds = util.spawnv_passfds
|
||||
orig_executable = spawn.get_executable()
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from array import array
|
||||
from ctypes import _CData
|
||||
from mmap import mmap
|
||||
from pickle import PickleBuffer
|
||||
from typing import Protocol, SupportsIndex, SupportsInt
|
||||
from typing import SupportsIndex, SupportsInt
|
||||
|
||||
class SupportsTrunc(Protocol):
|
||||
def __trunc__(self) -> int: ...
|
||||
from _typeshed import ReadableBuffer, SupportsTrunc
|
||||
|
||||
ArgsType = Sequence[
|
||||
Union[str, Union[bytes, Union[bytearray, memoryview, array[Any], mmap, _CData, PickleBuffer]], SupportsInt, SupportsIndex, SupportsTrunc]
|
||||
]
|
||||
ArgsType = Sequence[Union[str, ReadableBuffer, SupportsInt, SupportsIndex, SupportsTrunc]]
|
||||
else:
|
||||
ArgsType = Sequence[str]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user