From 8d9d01d409bffb347e03fcfaeb06793042b4d725 Mon Sep 17 00:00:00 2001 From: Jonathan Slenders Date: Mon, 10 Jun 2024 10:51:30 +0000 Subject: [PATCH] Small simplification in Screen code. See also: https://github.com/prompt-toolkit/python-prompt-toolkit/pull/1877/ --- src/prompt_toolkit/layout/screen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prompt_toolkit/layout/screen.py b/src/prompt_toolkit/layout/screen.py index 0f19f52a8..475f540d1 100644 --- a/src/prompt_toolkit/layout/screen.py +++ b/src/prompt_toolkit/layout/screen.py @@ -169,7 +169,7 @@ def __init__( #: Escape sequences to be injected. self.zero_width_escapes: defaultdict[int, defaultdict[int, str]] = defaultdict( - lambda: defaultdict(lambda: "") + lambda: defaultdict(str) ) #: Position of the cursor.