mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 04:32:05 +00:00
Make mypy 1.4 happy
This commit is contained in:
parent
a4f2f1b601
commit
740c542d34
1 changed files with 3 additions and 10 deletions
|
|
@ -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]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue