diff --git a/src/textual/app.py b/src/textual/app.py index 4883d76d54..29153a738e 100644 --- a/src/textual/app.py +++ b/src/textual/app.py @@ -3387,7 +3387,7 @@ def notify( message: The message for the notification. title: The title for the notification. severity: The severity of the notification. - timeout: The timeout for the notification. + timeout: The timeout (in seconds) for the notification. The `notify` method is used to create an application-wide notification, shown in a [`Toast`][textual.widgets._toast.Toast], diff --git a/src/textual/notifications.py b/src/textual/notifications.py index 27f95ccd6d..2b2489bfbf 100644 --- a/src/textual/notifications.py +++ b/src/textual/notifications.py @@ -37,7 +37,7 @@ class Notification: """The severity level for the notification.""" timeout: float = 5 - """The timeout for the notification.""" + """The timeout (in seconds) for the notification.""" raised_at: float = field(default_factory=time) """The time when the notification was raised (in Unix time).""" diff --git a/src/textual/widget.py b/src/textual/widget.py index e1ac7e2b26..6889090f1b 100644 --- a/src/textual/widget.py +++ b/src/textual/widget.py @@ -3791,7 +3791,7 @@ def notify( message: The message for the notification. title: The title for the notification. severity: The severity of the notification. - timeout: The timeout for the notification. + timeout: The timeout (in seconds) for the notification. See [`App.notify`][textual.app.App.notify] for the full documentation for this method.