Skip to content

Commit c170fda

Browse files
committed
drop python<=3.7 support
According to https://endoflife.date/python python 3.7 has been EOSed 27 Jun 2023. Filter all code over `pyupgrade --py3.8-plus`. Signed-off-by: Tomasz Kłoczko <[email protected]>
1 parent 6a58564 commit c170fda

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/prompt_toolkit/layout/screen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def __init__(
169169

170170
#: Escape sequences to be injected.
171171
self.zero_width_escapes: defaultdict[int, defaultdict[int, str]] = defaultdict(
172-
lambda: defaultdict(lambda: "")
172+
lambda: defaultdict(str)
173173
)
174174

175175
#: Position of the cursor.

src/prompt_toolkit/layout/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from prompt_toolkit.formatted_text.base import OneStyleAndTextTuple
66

77
if TYPE_CHECKING:
8-
from typing_extensions import SupportsIndex
8+
from typing import SupportsIndex
99

1010
__all__ = [
1111
"explode_text_fragments",

0 commit comments

Comments
 (0)