Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
wutingjia committed Oct 17, 2024
1 parent d2cfe49 commit 99d2e50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jedi/api/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def _complete_python(self, leaf):
# 3. Decorators are very primitive and have an optional `(` with
# optional arglist in them.
if nodes[-1] in ['(', ','] \
and nonterminals[-1] in ('trailer', 'arglist', 'decorator'):
and nonterminals[-1] in ('trailer', 'arglist', 'decorator'):
signatures = self._signatures_callback(*self._position)
if signatures:
call_details = signatures[0]._call_details
Expand Down Expand Up @@ -646,7 +646,7 @@ def search_in_module(inference_state, module_context, names, wanted_names,
for n in names:
if s == n.string_name:
if n.tree_name is not None and n.api_type in ('module', 'namespace') \
and ignore_imports:
and ignore_imports:
continue
new_names += complete_trailer(
module_context,
Expand Down

0 comments on commit 99d2e50

Please sign in to comment.