summaryrefslogtreecommitdiffstats
path: root/src/prompt_toolkit/search.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-05 04:45:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-05 04:45:14 +0000
commit437643bd908d99924e3003db4d9d3718d9df5813 (patch)
tree9752c4e8ebd3ae23f7a586066a874bd4418feeaa /src/prompt_toolkit/search.py
parentAdding debian version 3.0.43-2. (diff)
downloadprompt-toolkit-437643bd908d99924e3003db4d9d3718d9df5813.tar.xz
prompt-toolkit-437643bd908d99924e3003db4d9d3718d9df5813.zip
Merging upstream version 3.0.46.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/prompt_toolkit/search.py')
-rw-r--r--src/prompt_toolkit/search.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/prompt_toolkit/search.py b/src/prompt_toolkit/search.py
index fd90a04..d1cf7ac 100644
--- a/src/prompt_toolkit/search.py
+++ b/src/prompt_toolkit/search.py
@@ -5,6 +5,7 @@ For the key bindings implementation with attached filters, check
`prompt_toolkit.key_binding.bindings.search`. (Use these for new key bindings
instead of calling these function directly.)
"""
+
from __future__ import annotations
from enum import Enum
@@ -59,12 +60,7 @@ class SearchState:
self.ignore_case = to_filter(ignore_case)
def __repr__(self) -> str:
- return "{}({!r}, direction={!r}, ignore_case={!r})".format(
- self.__class__.__name__,
- self.text,
- self.direction,
- self.ignore_case,
- )
+ return f"{self.__class__.__name__}({self.text!r}, direction={self.direction!r}, ignore_case={self.ignore_case!r})"
def __invert__(self) -> SearchState:
"""