You are viewing an older version (9.5.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.5.0 / IPython / core / completer / _deduplicate_completions

function

IPython.core.completer:_deduplicate_completions

source: /IPython/core/completer.py :799

Signature

def   _deduplicate_completions ( text : str completions : _IC )  →  _IC

Summary

Deduplicate a set of completions.

Extended Summary

Parameters

text : str

text that should be completed.

completions : Iterator[Completion]

iterator over the completions to deduplicate

Yields

: `Completions` objects
: Completions coming from multiple sources, may be different but end up having
: the same effect when applied to ``text``. If this is the case, this will
: consider completions as equal and only emit the first encountered.
: Not folded in `completions()` yet for debugging purpose, and to detect when
: the IPython completer does return things that Jedi does not, but should be
: at some point.

Aliases

  • IPython.core.completer._deduplicate_completions