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 43ff283 commit ce0ed4bCopy full SHA for ce0ed4b
jedi/inference/imports.py
@@ -267,6 +267,10 @@ def follow(self):
267
# `__init__.py` (#2) and not as `foo.py` (#3). This is usually
268
# not an issue, because this case is probably pretty rare, but
269
# 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.
274
from jedi.inference.value.namespace import ImplicitNamespaceValue
275
import_path = (os.path.basename(self._fixed_sys_path[0]),)
276
ns = ImplicitNamespaceValue(
0 commit comments