We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94bda61 commit 189da3eCopy full SHA for 189da3e
bpython/line.py
@@ -7,7 +7,7 @@
7
import re
8
9
from itertools import chain
10
-from typing import Optional, NamedTuple
+from typing import Optional, NamedTuple, Tuple
11
12
from .lazyre import LazyReCompile
13
@@ -290,7 +290,9 @@ def current_expression_attribute(
290
return None
291
292
293
-def cursor_on_closing_char_pair(cursor_offset, line, ch=None):
+def cursor_on_closing_char_pair(
294
+ cursor_offset: int, line: str, ch: Optional[str] = None
295
+) -> Tuple[bool, bool]:
296
"""Checks if cursor sits on closing character of a pair
297
and whether its pair character is directly behind it
298
"""
0 commit comments