Skip to content

Commit

Permalink
Fix some misalignment of docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
HairlessVillager authored Dec 28, 2023
1 parent f8e502f commit 94ec4b8
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 94ec4b8

Please sign in to comment.