restore type alias

This commit is contained in:
Will McGugan
2022-11-11 09:41:14 +00:00
parent 44e44da784
commit 41263c32df

View File

@@ -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):