From 62af0b0aefaf75d9175ca77a7771d42674502770 2022-09-08 16:26:23 From: krassowski <5832902+krassowski@users.noreply.github.com> Date: 2022-09-08 16:26:23 Subject: [PATCH] Relax constraint on limit to allow no limit --- diff --git a/IPython/core/completer.py b/IPython/core/completer.py index 50b3e5e..ef99c97 100644 --- a/IPython/core/completer.py +++ b/IPython/core/completer.py @@ -623,7 +623,8 @@ class CompletionContext(NamedTuple): #: The maximum number of completions that will be used downstream. #: Matchers can use this information to abort early. #: The built-in Jedi matcher is currently excepted from this limit. - limit: int + # If not given, return all possible completions. + limit: Optional[int] @property @lru_cache(maxsize=None) # TODO change to @cache after dropping Python 3.7