Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f385485 commit bebfbe2Copy full SHA for bebfbe2
1 file changed
Lib/rlcompleter.py
@@ -87,7 +87,7 @@ def complete(self, text, state):
87
return None
88
89
def _callable_postfix(self, val, word):
90
- if callable(val):
+ if hasattr(val, '__call__'):
91
word = word + "("
92
return word
93
0 commit comments