| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 94bda61 commit 189da3e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ | |||
| 7 | 7 | import re | |
| 8 | 8 | ||
| 9 | 9 | from itertools import chain | |
| 10 | - from typing import Optional, NamedTuple | ||
| 10 | + from typing import Optional, NamedTuple, Tuple | ||
| 11 | 11 | ||
| 12 | 12 | from .lazyre import LazyReCompile | |
| 13 | 13 | ||
@@ -290,7 +290,9 @@ def current_expression_attribute( | |||
| 290 | 290 | return None | |
| 291 | 291 | ||
| 292 | 292 | ||
| 293 | - def cursor_on_closing_char_pair(cursor_offset, line, ch=None): | ||
| 293 | + def cursor_on_closing_char_pair( | ||
| 294 | + cursor_offset: int, line: str, ch: Optional[str] = None | ||
| 295 | + ) -> Tuple[bool, bool]: | ||
| 294 | 296 | """Checks if cursor sits on closing character of a pair | |
| 295 | 297 | and whether its pair character is directly behind it | |
| 296 | 298 | """ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments