Skip to content

Commit ce0ed4b

Browse files
committed
Improve a comment
1 parent 43ff283 commit ce0ed4b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jedi/inference/imports.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,10 @@ def follow(self):
267267
# `__init__.py` (#2) and not as `foo.py` (#3). This is usually
268268
# not an issue, because this case is probably pretty rare, but
269269
# might be an issue for some people.
270+
#
271+
# However for most normal cases where we work with different
272+
# file names, this code path hits where we basically change the
273+
# project path to an ancestor of project path.
270274
from jedi.inference.value.namespace import ImplicitNamespaceValue
271275
import_path = (os.path.basename(self._fixed_sys_path[0]),)
272276
ns = ImplicitNamespaceValue(

0 commit comments

Comments
 (0)