From 820ce17518311b27007b8d48a5b8625b159b13d4 Mon Sep 17 00:00:00 2001 From: TomJGooding <101601846+TomJGooding@users.noreply.github.com> Date: Sat, 28 Feb 2026 17:22:08 +0000 Subject: [PATCH] docs(widget): fix `Widget.region` docstring Remove the "raises" section from the `Widget.region` docstring, since these exceptions are handled in the try-except to return a null region. --- src/textual/widget.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/textual/widget.py b/src/textual/widget.py index 40679c959e..cd810e01e4 100644 --- a/src/textual/widget.py +++ b/src/textual/widget.py @@ -2249,10 +2249,6 @@ def content_size(self) -> Size: def region(self) -> Region: """The region occupied by this widget, relative to the Screen. - Raises: - NoScreen: If there is no screen. - errors.NoWidget: If the widget is not on the screen. - Returns: Region within screen occupied by widget. """