mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Use correct typing.Literal for Python 3.7.
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from itertools import cycle
|
||||
from typing import Literal
|
||||
|
||||
from .. import events
|
||||
from ..app import ComposeResult
|
||||
from ..css._error_tools import friendly_list
|
||||
from ..reactive import Reactive, reactive
|
||||
from ..widgets import Static
|
||||
from .._typing import Literal
|
||||
|
||||
PlaceholderVariant = Literal["default", "size", "text"]
|
||||
_VALID_PLACEHOLDER_VARIANTS_ORDERED: list[PlaceholderVariant] = [
|
||||
|
||||
Reference in New Issue
Block a user