-
-
Notifications
You must be signed in to change notification settings - Fork 252
Closed
Description
bpython/bpython/autocomplete.py
Lines 451 to 452 in b66a29f
| def locate(self, current_offset, line) -> Union[LinePart, None]: | |
| return lineparts.current_dict_key(current_offset, line) |
Function above declares a possible None return type. Below are lines that unpack without checking the return value.
Lines 280 to 282 in b66a29f
| start, end, word = self.completer.locate( | |
| self.orig_cursor_offset, self.orig_line | |
| ) |
Lines 322 to 324 in b66a29f
| self.start, self.end, self.current_word = self.completer.locate( | |
| self.orig_cursor_offset, self.orig_line | |
| ) |
Metadata
Metadata
Assignees
Labels
No labels