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 3eec508 commit 9c80367Copy full SHA for 9c80367
1 file changed
Lib/_pyrepl/_module_completer.py
@@ -30,7 +30,7 @@
30
"xml.parsers.expat": ["errors", "model"],
31
}
32
33
-AUTO_IMPORT_BLACKLIST = {
+AUTO_IMPORT_DENYLIST = {
34
# Standard library modules/submodules that have import side effects
35
# and must not be automatically imported to complete attributes
36
re.compile(r"antigravity"), # Calls webbrowser.open
@@ -263,7 +263,7 @@ def global_cache(self) -> list[pkgutil.ModuleInfo]:
263
return self._global_cache
264
265
def _maybe_import_module(self, fqname: str) -> ModuleType | None:
266
- if any(pattern.fullmatch(fqname) for pattern in AUTO_IMPORT_BLACKLIST):
+ if any(pattern.fullmatch(fqname) for pattern in AUTO_IMPORT_DENYLIST):
267
# Special-cased modules with known import side-effects
268
return None
269
root = fqname.split(".")[0]
0 commit comments