bundles / IPython 9.12.0 / IPython / core / completer / completion_matcher
function
IPython.core.completer:completion_matcher
source: /IPython/core/completer.py :735
Signature
def completion_matcher ( * , priority : Optional[float] = None , identifier : Optional[str] = None , api_version : int = 1 ) → Callable[[Matcher], Matcher] Summary
Adds attributes describing the matcher.
Parameters
priority: Optional[float]The priority of the matcher, determines the order of execution of matchers. Higher priority means that the matcher will be executed first. Defaults to 0.
identifier: Optional[str]identifier of the matcher allowing users to modify the behaviour via traitlets, and also used to for debugging (will be passed as
originwith the completions).Defaults to matcher function's
__qualname__(for example,IPCompleter.file_matcherfor the built-in matched defined as afile_matchermethod of theIPCompleterclass).api_version: Optional[int]version of the Matcher API used by this matcher. Currently supported values are 1 and 2. Defaults to 1.
Aliases
-
IPython.core.completer.completion_matcher