|
85 | 85 |
|
86 | 86 | We welcome any feedback on these new API, and we also encourage you to try this |
87 | 87 | module in debug mode (start IPython with ``--Completer.debug=True``) in order |
88 | | -to have extra logging information if :any:`jedi` is crashing, or if current |
| 88 | +to have extra logging information if :mod:`jedi` is crashing, or if current |
89 | 89 | IPython completer pending deprecations are returning results not yet handled |
90 | | -by :any:`jedi` |
| 90 | +by :mod:`jedi` |
91 | 91 |
|
92 | 92 | Using Jedi for tab completion allow snippets like the following to work without |
93 | 93 | having to execute any code: |
|
99 | 99 | executing almost any code unlike the deprecated :any:`IPCompleter.greedy` |
100 | 100 | option. |
101 | 101 |
|
102 | | -Be sure to update :any:`jedi` to the latest stable version or to try the |
| 102 | +Be sure to update :mod:`jedi` to the latest stable version or to try the |
103 | 103 | current development version to get better completions. |
104 | 104 |
|
105 | 105 | Matchers |
|
149 | 149 | and requires a literal ``2`` for v2 Matchers. |
150 | 150 |
|
151 | 151 | Once the API stabilises future versions may relax the requirement for specifying |
152 | | -``matcher_api_version`` by switching to :any:`functools.singledispatch`, therefore |
| 152 | +``matcher_api_version`` by switching to :func:`functools.singledispatch`, therefore |
153 | 153 | please do not rely on the presence of ``matcher_api_version`` for any purposes. |
154 | 154 |
|
155 | 155 | Suppression of competing matchers |
@@ -487,7 +487,7 @@ class Completion: |
487 | 487 | It will also raise unless use in proper context manager. |
488 | 488 |
|
489 | 489 | This act as a middle ground :any:`Completion` object between the |
490 | | - :any:`jedi.api.classes.Completion` object and the Prompt Toolkit completion |
| 490 | + :class:`jedi.api.classes.Completion` object and the Prompt Toolkit completion |
491 | 491 | object. While Jedi need a lot of information about evaluator and how the |
492 | 492 | code should be ran/inspected, PromptToolkit (and other frontend) mostly |
493 | 493 | need user facing information. |
@@ -858,7 +858,7 @@ def rectify_completions(text: str, completions: _IC, *, _debug: bool = False) -> |
858 | 858 |
|
859 | 859 | Notes |
860 | 860 | ----- |
861 | | - :any:`jedi.api.classes.Completion` s returned by Jedi may not have the same start and end, though |
| 861 | + :class:`jedi.api.classes.Completion` s returned by Jedi may not have the same start and end, though |
862 | 862 | the Jupyter Protocol requires them to behave like so. This will readjust |
863 | 863 | the completion to have the same ``start`` and ``end`` by padding both |
864 | 864 | extremities with surrounding text. |
@@ -988,9 +988,9 @@ class Completer(Configurable): |
988 | 988 | no item/attribute evaluation, no access to locals/globals, |
989 | 989 | no evaluation of any operations or comparisons. |
990 | 990 | - ``limited``: access to all namespaces, evaluation of hard-coded methods |
991 | | - (for example: :any:`dict.keys`, :any:`object.__getattr__`, |
992 | | - :any:`object.__getitem__`) on allow-listed objects (for example: |
993 | | - :any:`dict`, :any:`list`, :any:`tuple`, ``pandas.Series``), |
| 991 | + (for example: :py:meth:`dict.keys`, :py:meth:`object.__getattr__`, |
| 992 | + :py:meth:`object.__getitem__`) on allow-listed objects (for example: |
| 993 | + :py:class:`dict`, :py:class:`list`, :py:class:`tuple`, ``pandas.Series``), |
994 | 994 | - ``unsafe``: evaluation of all methods and function calls but not of |
995 | 995 | syntax with side-effects like `del x`, |
996 | 996 | - ``dangerous``: completely arbitrary evaluation; does not support auto-import. |
@@ -3305,7 +3305,7 @@ def completions(self, text: str, offset: int)->Iterator[Completion]: |
3305 | 3305 |
|
3306 | 3306 | .. note:: |
3307 | 3307 |
|
3308 | | - If ``IPCompleter.debug`` is :any:`True` will yield a ``--jedi/ipython--`` |
| 3308 | + If ``IPCompleter.debug`` is :py:data:`True` will yield a ``--jedi/ipython--`` |
3309 | 3309 | fake Completion token to distinguish completion returned by Jedi |
3310 | 3310 | and usual IPython completion. |
3311 | 3311 |
|
|
0 commit comments