Skip to content

Commit

Permalink
silence mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli committed Jul 12, 2023
1 parent 025dcb9 commit 18225d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion porcupine/plugins/sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def can_extend_default_selection(text: tkinter.Text, required_prefix: str, new_l

def find_chunk_around_cursor(text: tkinter.Text) -> tuple[int, int]:
cursor_line = text.get("insert linestart", "insert lineend")
cursor_line_indentation = re.match(r"\s*", cursor_line).group(0)
cursor_line_indentation = re.match(r"\s*", cursor_line).group(0) # type: ignore

start = end = int(text.index("insert").split(".")[0])
while can_extend_default_selection(text, cursor_line_indentation, start - 1):
Expand Down

0 comments on commit 18225d7

Please sign in to comment.