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 c075f5b commit 59110fcCopy full SHA for 59110fc
1 file changed
Lib/rlcompleter.py
@@ -36,6 +36,7 @@
36
import re
37
import __main__
38
import warnings
39
+import types
40
41
__all__ = ["Completer"]
42
@@ -188,7 +189,16 @@ def attr_matches(self, text):
188
189
# property method, which is not desirable.
190
matches.append(match)
191
continue
- if (value := getattr(thisobject, word, None)) is not None:
192
+
193
+ if (isinstance(thisobject, types.ModuleType)
194
+ and
195
+ isinstance(thisobject.__dict__.get(word),types.LazyImportType)
196
+ ):
197
+ value = thisobject.__dict__.get(word)
198
+ else:
199
+ value = getattr(thisobject, word, None)
200
201
+ if value is not None:
202
matches.append(self._callable_postfix(value, match))
203
else:
204
0 commit comments