Skip to content

Commit d9acae2

Browse files
authored
Merge pull request #5277 from TomJGooding/fix-typing-add-typealias-to-renderresult
fix(typing): add TypeAlias to RenderResult
2 parents d2467ef + 4e08515 commit d9acae2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/textual/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
on,
7272
)
7373
from textual._animator import DEFAULT_EASING, Animatable, Animator, EasingFunction
74+
from textual.visual import Visual, SupportsVisual
7475
from textual._ansi_sequences import SYNC_END, SYNC_START
7576
from textual._ansi_theme import ALABASTER, MONOKAI
7677
from textual._callback import invoke
@@ -152,7 +153,7 @@
152153
_ASYNCIO_GET_EVENT_LOOP_IS_DEPRECATED = sys.version_info >= (3, 10, 0)
153154

154155
ComposeResult = Iterable[Widget]
155-
RenderResult = "RenderableType | Visual | SupportsTextualize"
156+
RenderResult: TypeAlias = "RenderableType | Visual | SupportsVisual"
156157
"""Result of Widget.render()"""
157158

158159
AutopilotCallbackType: TypeAlias = (

0 commit comments

Comments
 (0)