Skip to content

Commit 189da3e

Browse files
committed
Add type annotations
1 parent 94bda61 commit 189da3e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bpython/line.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import re
88

99
from itertools import chain
10-
from typing import Optional, NamedTuple
10+
from typing import Optional, NamedTuple, Tuple
1111

1212
from .lazyre import LazyReCompile
1313

@@ -290,7 +290,9 @@ def current_expression_attribute(
290290
return None
291291

292292

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]:
294296
"""Checks if cursor sits on closing character of a pair
295297
and whether its pair character is directly behind it
296298
"""

0 commit comments

Comments
 (0)