mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
restore type alias
This commit is contained in:
@@ -41,11 +41,12 @@ if TYPE_CHECKING:
|
||||
from .screen import Screen
|
||||
from .widget import Widget
|
||||
|
||||
from textual._typing import Literal
|
||||
from textual._typing import Literal, TypeAlias
|
||||
|
||||
_re_identifier = re.compile(IDENTIFIER)
|
||||
|
||||
WalkMethod = Literal["depth", "breadth"]
|
||||
|
||||
WalkMethod: TypeAlias = Literal["depth", "breadth"]
|
||||
|
||||
|
||||
class BadIdentifier(Exception):
|
||||
|
||||
Reference in New Issue
Block a user