Type hint pyperclip.paste()

This commit is contained in:
Isaiah Odhner 2023-04-26 21:27:33 -04:00
parent f1652c257a
commit dc6ab4d72e

View File

@ -1927,7 +1927,7 @@ class PaintApp(App[None]):
def action_paste(self) -> None:
"""Paste the clipboard as a selection."""
import pyperclip
text = pyperclip.paste()
text: str = pyperclip.paste()
if not text:
return
if self.image.selection and self.image.selection.textbox_mode: