Skip to content

Commit

Permalink
Merge pull request #1977 from HairlessVillager/master
Browse files Browse the repository at this point in the history
[Typo] Fix some misalignment of docstrings
  • Loading branch information
davidhalter committed Dec 28, 2023
2 parents f8e502f + 94ec4b8 commit 11280ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jedi/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ def complete(self, line=None, column=None, *, fuzzy=False):

@validate_line_column
def infer(self, line=None, column=None, *, only_stubs=False, prefer_stubs=False):
self._inference_state.reset_recursion_limitations()
"""
Return the definitions of under the cursor. It is basically a wrapper
around Jedi's type inference.
Expand All @@ -232,6 +231,7 @@ def infer(self, line=None, column=None, *, only_stubs=False, prefer_stubs=False)
:param prefer_stubs: Prefer stubs to Python objects for this method.
:rtype: list of :class:`.Name`
"""
self._inference_state.reset_recursion_limitations()
pos = line, column
leaf = self._module_node.get_name_of_position(pos)
if leaf is None:
Expand Down Expand Up @@ -262,7 +262,6 @@ def infer(self, line=None, column=None, *, only_stubs=False, prefer_stubs=False)
@validate_line_column
def goto(self, line=None, column=None, *, follow_imports=False, follow_builtin_imports=False,
only_stubs=False, prefer_stubs=False):
self._inference_state.reset_recursion_limitations()
"""
Goes to the name that defined the object under the cursor. Optionally
you can follow imports.
Expand All @@ -276,6 +275,7 @@ def goto(self, line=None, column=None, *, follow_imports=False, follow_builtin_i
:param prefer_stubs: Prefer stubs to Python objects for this method.
:rtype: list of :class:`.Name`
"""
self._inference_state.reset_recursion_limitations()
tree_name = self._module_node.get_name_of_position((line, column))
if tree_name is None:
# Without a name we really just want to jump to the result e.g.
Expand Down

0 comments on commit 11280ef

Please sign in to comment.