MCPcopy Index your code
hub / github.com/RustPython/RustPython / _callable_postfix

Method _callable_postfix

Lib/rlcompleter.py:102–111  ·  view source on GitHub ↗
(self, val, word)

Source from the content-addressed store, hash-verified

100 return None
101
102 def _callable_postfix(self, val, word):
103 if callable(val):
104 word += "("
105 try:
106 if not inspect.signature(val).parameters:
107 word += ")"
108 except ValueError:
109 pass
110
111 return word
112
113 def global_matches(self, text):
114 """Compute matches when text is a simple name.

Callers 2

global_matchesMethod · 0.95
attr_matchesMethod · 0.95

Calls 2

callableFunction · 0.85
signatureMethod · 0.45

Tested by

no test coverage detected