Make mypy 1.16 happy

This commit is contained in:
Kovid Goyal
2025-05-30 10:01:15 +05:30
parent 27fdfe6480
commit 62580c855b
10 changed files with 30 additions and 28 deletions

View File

@@ -115,7 +115,7 @@ def read_data_from_shared_memory(shm_name: str) -> Any:
return json.loads(shm.read_data_with_size())
def get_ssh_data(msgb: memoryview, request_id: str) -> Iterator[bytes]:
def get_ssh_data(msgb: memoryview, request_id: str) -> Iterator[bytes|memoryview]:
from base64 import standard_b64decode
yield b'\nKITTY_DATA_START\n' # to discard leading data
try: