mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
test fix
This commit is contained in:
@@ -64,6 +64,8 @@ def visualize(widget: Widget, obj: object) -> Visual:
|
||||
if visualize is None:
|
||||
# Doesn't expose the textualize protocol
|
||||
if is_renderable(obj):
|
||||
if isinstance(obj, str):
|
||||
obj = Text.from_markup(obj)
|
||||
# If its is a Rich renderable, wrap it with a RichVisual
|
||||
return RichVisual(widget, rich_cast(obj))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user