summaryrefslogtreecommitdiffstats
path: root/src/prompt_toolkit/widgets
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
commit5b43aaac61ac94abe722bc98ae58468618f2f512 (patch)
tree3d58c89faa23d194f83abb24ae1fd05067538fff /src/prompt_toolkit/widgets
parentAdding upstream version 3.0.43. (diff)
downloadprompt-toolkit-5b43aaac61ac94abe722bc98ae58468618f2f512.tar.xz
prompt-toolkit-5b43aaac61ac94abe722bc98ae58468618f2f512.zip
Adding upstream version 3.0.46.upstream/3.0.46
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/prompt_toolkit/widgets')
-rw-r--r--src/prompt_toolkit/widgets/__init__.py1
-rw-r--r--src/prompt_toolkit/widgets/base.py1
-rw-r--r--src/prompt_toolkit/widgets/dialogs.py1
-rw-r--r--src/prompt_toolkit/widgets/toolbars.py6
4 files changed, 4 insertions, 5 deletions
diff --git a/src/prompt_toolkit/widgets/__init__.py b/src/prompt_toolkit/widgets/__init__.py
index 9d1d4e3..53cc3e1 100644
--- a/src/prompt_toolkit/widgets/__init__.py
+++ b/src/prompt_toolkit/widgets/__init__.py
@@ -6,6 +6,7 @@ module.
Most of these widgets implement the ``__pt_container__`` method, which makes it
possible to embed these in the layout like any other container.
"""
+
from __future__ import annotations
from .base import (
diff --git a/src/prompt_toolkit/widgets/base.py b/src/prompt_toolkit/widgets/base.py
index f36a545..709b7a9 100644
--- a/src/prompt_toolkit/widgets/base.py
+++ b/src/prompt_toolkit/widgets/base.py
@@ -12,6 +12,7 @@ container object.
guarantees are made yet). The public API in
`prompt_toolkit.shortcuts.dialogs` on the other hand is considered stable.
"""
+
from __future__ import annotations
from functools import partial
diff --git a/src/prompt_toolkit/widgets/dialogs.py b/src/prompt_toolkit/widgets/dialogs.py
index c47c15b..5f5f170 100644
--- a/src/prompt_toolkit/widgets/dialogs.py
+++ b/src/prompt_toolkit/widgets/dialogs.py
@@ -1,6 +1,7 @@
"""
Collection of reusable components for building full screen applications.
"""
+
from __future__ import annotations
from typing import Sequence
diff --git a/src/prompt_toolkit/widgets/toolbars.py b/src/prompt_toolkit/widgets/toolbars.py
index deddf15..c5deffc 100644
--- a/src/prompt_toolkit/widgets/toolbars.py
+++ b/src/prompt_toolkit/widgets/toolbars.py
@@ -352,11 +352,7 @@ class ValidationToolbar:
)
if show_position:
- text = "{} (line={} column={})".format(
- buff.validation_error.message,
- row + 1,
- column + 1,
- )
+ text = f"{buff.validation_error.message} (line={row + 1} column={column + 1})"
else:
text = buff.validation_error.message