There was an error while loading. Please reload this page.
1 parent 94efdc2 commit 833a74fCopy full SHA for 833a74f
pythonFiles/preview/jedi/api/completion.py
@@ -158,7 +158,7 @@ def _get_context_completions(self):
158
# No completions for ``with x as foo`` and ``import x as foo``.
159
# Also true for defining names as a class or function.
160
return list(self._get_class_context_completions(is_function=True))
161
- elif symbol_names[-1] == 'trailer' and nodes[-1] == '.':
+ elif symbol_names[-1] in ('trailer', 'dotted_name') and nodes[-1] == '.':
162
dot = self._module.get_leaf_for_position(self._position)
163
atom_expr = call_of_leaf(dot.get_previous_leaf())
164
completion_names += self._trailer_completions(atom_expr)
0 commit comments