Skip to content

Commit 46df6f9

Browse files
author
Jonathan Plasse
committed
Fix _Template.insert_text_at_cursor() type annotation
1 parent d6523c1 commit 46df6f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/textual/widgets/_masked_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def insert_separators(self, value: str, cursor_position: int) -> tuple[str, int]
200200
cursor_position += 1
201201
return value, cursor_position
202202

203-
def insert_text_at_cursor(self, text: str) -> str | None:
203+
def insert_text_at_cursor(self, text: str) -> tuple[str, int] | None:
204204
"""Inserts `text` at current cursor position. If not present in `text`, any expected separator is automatically
205205
inserted at the correct position.
206206

0 commit comments

Comments
 (0)