MCPcopy Index your code
hub / github.com/bpython/bpython / is_completion_callable

Method is_completion_callable

bpython/curtsiesfrontend/repl.py:1014–1017  ·  view source on GitHub ↗

Checks whether given completion is callable (e.x. function)

(self, completion)

Source from the content-addressed store, hash-verified

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"""

Callers 1

on_tabMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected