mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-13 12:09:35 +03:00
...
This commit is contained in:
parent
9b9eae7923
commit
362c4147e4
@ -8,9 +8,9 @@ import time
|
||||
import unittest
|
||||
import zlib
|
||||
from base64 import standard_b64decode, standard_b64encode
|
||||
from dataclasses import dataclass
|
||||
from io import BytesIO
|
||||
from itertools import cycle
|
||||
from typing import NamedTuple
|
||||
|
||||
from kitty.fast_data_types import (
|
||||
load_png_data, parse_bytes, shm_unlink, shm_write, xor_data
|
||||
@ -53,7 +53,8 @@ def parse_response_with_ids(res):
|
||||
return code, a
|
||||
|
||||
|
||||
class Response(NamedTuple):
|
||||
@dataclass(frozen=True)
|
||||
class Response:
|
||||
code: str = 'OK'
|
||||
msg: str = ''
|
||||
image_id: int = 0
|
||||
|
Loading…
Reference in New Issue
Block a user