mirror of
https://github.com/1j01/textual-paint.git
synced 2025-01-02 20:04:36 +03:00
Type hint pyperclip.paste()
This commit is contained in:
parent
f1652c257a
commit
dc6ab4d72e
2
paint.py
2
paint.py
@ -1927,7 +1927,7 @@ class PaintApp(App[None]):
|
|||||||
def action_paste(self) -> None:
|
def action_paste(self) -> None:
|
||||||
"""Paste the clipboard as a selection."""
|
"""Paste the clipboard as a selection."""
|
||||||
import pyperclip
|
import pyperclip
|
||||||
text = pyperclip.paste()
|
text: str = pyperclip.paste()
|
||||||
if not text:
|
if not text:
|
||||||
return
|
return
|
||||||
if self.image.selection and self.image.selection.textbox_mode:
|
if self.image.selection and self.image.selection.textbox_mode:
|
||||||
|
Loading…
Reference in New Issue
Block a user