diff --git a/lib/python/pyflyby/_interactive.py b/lib/python/pyflyby/_interactive.py index d4ef152a..a6318120 100644 --- a/lib/python/pyflyby/_interactive.py +++ b/lib/python/pyflyby/_interactive.py @@ -36,6 +36,8 @@ indent) +PYFLYBY_LAZY_LOAD_PREFIX = "from pyflyby_autoimport_" + if False: __original__ = None # for pyflakes @@ -2151,7 +2153,8 @@ def auto_import( namespaces = get_global_namespaces(self._ip) def post_import_hook(imp): - send_comm_message(MISSING_IMPORTS, {"missing_imports": str(imp)}) + if not str(imp).startswith(PYFLYBY_LAZY_LOAD_PREFIX): + send_comm_message(MISSING_IMPORTS, {"missing_imports": str(imp)}) return self._safe_call( auto_import, arg=arg, namespaces=namespaces,