From 84edd34fa61b1b260a5351474d134339f17f45d9 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Tue, 7 Feb 2023 10:56:04 +0000 Subject: [PATCH] typing extensions import --- src/textual/css/_help_text.py | 2 +- src/textual/features.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/textual/css/_help_text.py b/src/textual/css/_help_text.py index 34b7591ca..0e57fdccf 100644 --- a/src/textual/css/_help_text.py +++ b/src/textual/css/_help_text.py @@ -3,7 +3,7 @@ from __future__ import annotations from dataclasses import dataclass from typing import Iterable, Sequence -from typing import Literal +from typing_extensions import Literal from ..color import ColorParseError from ._help_renderables import Example, Bullet, HelpText diff --git a/src/textual/features.py b/src/textual/features.py index 507de18f0..9799363cd 100644 --- a/src/textual/features.py +++ b/src/textual/features.py @@ -1,6 +1,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Literal, cast +from typing import TYPE_CHECKING, cast + +from typing_extensions import Literal if TYPE_CHECKING: from typing_extensions import Final