Checks whether given completion is callable (e.x. function)
(self, completion)
| 1012 | ) |
| 1013 | |
| 1014 | def is_completion_callable(self, completion): |
| 1015 | """Checks whether given completion is callable (e.x. function)""" |
| 1016 | completion_end = completion[-1] |
| 1017 | return completion_end in CHARACTER_PAIR_MAP |
| 1018 | |
| 1019 | def append_closing_character(self, completion): |
| 1020 | """Appends closing character/bracket to the completion""" |