Skip to content

Commit 43efe66

Browse files
committed
black
1 parent 1ce6a4e commit 43efe66

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/textual/_work_decorator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ class WorkerDeclarationError(Exception):
3333
"""An error in the declaration of a worker method."""
3434

3535

36-
3736
@overload
3837
def work(
3938
method: Callable[FactoryParamSpec, Coroutine[None, None, ReturnType]],
@@ -46,6 +45,7 @@ def work(
4645
thread: bool = False,
4746
) -> Callable[FactoryParamSpec, "Worker[ReturnType]"]: ...
4847

48+
4949
@overload
5050
def work(
5151
method: Callable[FactoryParamSpec, ReturnType],
@@ -58,6 +58,7 @@ def work(
5858
thread: bool = False,
5959
) -> Callable[FactoryParamSpec, "Worker[ReturnType]"]: ...
6060

61+
6162
@overload
6263
def work(
6364
*,

src/textual/walk.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def walk_depth_first(
2424
with_root: bool = True,
2525
) -> Iterable[DOMNode]: ...
2626

27+
2728
@overload
2829
def walk_depth_first(
2930
root: WalkType,
@@ -88,6 +89,7 @@ def walk_breadth_first(
8889
with_root: bool = True,
8990
) -> Iterable[DOMNode]: ...
9091

92+
9193
@overload
9294
def walk_breadth_first(
9395
root: WalkType,

src/textual/worker.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ def run_callable(work: Callable[[], ResultType]) -> ResultType:
322322

323323
raise WorkerError("Unsupported attempt to run a thread worker")
324324

325-
326325
async def _run_async(self) -> ResultType:
327326
"""Run an async worker.
328327

0 commit comments

Comments
 (0)