From ce0ed4b8aef6ef9abeffcd5810c8c6f493dddc47 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 10 Dec 2020 16:57:09 +0100 Subject: [PATCH] Improve a comment --- jedi/inference/imports.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jedi/inference/imports.py b/jedi/inference/imports.py index 890735970..8309473fc 100644 --- a/jedi/inference/imports.py +++ b/jedi/inference/imports.py @@ -267,6 +267,10 @@ def follow(self): # `__init__.py` (#2) and not as `foo.py` (#3). This is usually # not an issue, because this case is probably pretty rare, but # might be an issue for some people. + # + # However for most normal cases where we work with different + # file names, this code path hits where we basically change the + # project path to an ancestor of project path. from jedi.inference.value.namespace import ImplicitNamespaceValue import_path = (os.path.basename(self._fixed_sys_path[0]),) ns = ImplicitNamespaceValue(