Skip to content

Widgets rendering now returns __repr__ instead of rendered version in 0.87.1 #5285

@pablogsal

Description

@pablogsal

Have you checked closed issues? https://github.com/Textualize/textual/issues?q=is%3Aissue+is%3Aclosed

Looks like after the 0.87.1 release some widgets are returning the __repr__ instead of the rendered text when the render() method is called. For example:

0.87.1

(Pdb) p widget
Label(id='pid')
(Pdb) p widget.render().__str__()
"RichVisual(Label(id='head_title'), <text 'Memray live tracking' [Span(0, 6, 'bold')] ''>)"

before:

(Pdb) p widget
Label(id='head_title')
(Pdb) p widget.render().__str__()
'Memray live tracking'

I couldn't find this change in the changeling here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions