MCPcopy Index your code
hub / github.com/python/cpython / _callable_postfix

Method _callable_postfix

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

Source from the content-addressed store, hash-verified

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

Callers 2

global_matchesMethod · 0.95
attr_matchesMethod · 0.95

Calls 1

signatureMethod · 0.45

Tested by

no test coverage detected