...
This commit is contained in:
parent
dd07a8c4a4
commit
45d8a2a630
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ def get_available_mime_types_for_paste(self) -> Tuple[str, ...]:
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue