Skip to content

fix(tests): use Static.render() for Textual 8 compat - #52

Merged
CryptoJones merged 1 commit into
mainfrom
fix/textual-8-renderable-api
Jun 12, 2026
Merged

CryptoJones merged 1 commit into
mainfrom
fix/textual-8-renderable-api

Conversation

@CryptoJones

Copy link
Copy Markdown
Owner

Summary

  • Textual 8.2.7 (bumped by Dependabot chore(deps): Bump the python-deps group across 1 directory with 4 updates #41) removed the .renderable attribute from Static widgets
  • Two test lines in tests/test_tui.py called widget.renderable; replaced both with widget.render(), which is the stable Widget API and returns the same content
  • All 3 Python matrix jobs were failing on test_open_creates_tab with AttributeError: 'Static' object has no attribute 'renderable'

Test plan

  • test_open_creates_tab passes locally
  • test_tabbar_escapes_markup_in_titles passes locally
  • CI will confirm across 3.11 / 3.12 / 3.13

🤖 Generated with Claude Code

Textual 8.2.7 dropped the `Static.renderable` attribute. The `render()`
method is the stable Widget API and returns the same renderable content.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@CryptoJones
CryptoJones merged commit ea57777 into main Jun 12, 2026
28 checks passed
@CryptoJones
CryptoJones deleted the fix/textual-8-renderable-api branch June 12, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant