From 73795bf2e231a4ff7a41a0d78b7c465f4946c673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gir=C3=A3o=20Serr=C3=A3o?= <5621605+rodrigogiraoserrao@users.noreply.github.com> Date: Wed, 11 Oct 2023 14:32:18 +0100 Subject: [PATCH] Restore original typing for the work decorator. --- src/textual/_work_decorator.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/textual/_work_decorator.py b/src/textual/_work_decorator.py index 8c2b4fd5ce..cf4bc624df 100644 --- a/src/textual/_work_decorator.py +++ b/src/textual/_work_decorator.py @@ -1,5 +1,4 @@ """ - A decorator used to create [workers](/guide/workers). """ @@ -87,7 +86,7 @@ def work( exclusive: bool = False, description: str | None = None, thread: bool = False, -) -> Callable[FactoryParamSpec, Worker[ReturnType]] | Decorator[..., ReturnType]: +) -> Callable[FactoryParamSpec, Worker[ReturnType]] | Decorator: """A decorator used to create [workers](/guide/workers). Args: