This commit is contained in:
Kovid Goyal 2023-02-07 18:27:16 +05:30
parent dd07a8c4a4
commit 45d8a2a630
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -137,7 +137,7 @@ class Clipboard:
def __call__(self, mime: str) -> Callable[[], bytes]:
data = self.data.get(mime, b'')
if isinstance(data, str):
data = data.encode('utf-8')
data = data.encode('utf-8') # type: ignore
if isinstance(data, bytes):
def chunker() -> bytes:
nonlocal data