Skip to content

Commit

Permalink
Improve a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhalter committed Dec 10, 2020
1 parent 43ff283 commit ce0ed4b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jedi/inference/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ce0ed4b

Please sign in to comment.