Skip to content

Commit 23a2b1f

Browse files
style: Formatting
1 parent 864c1fc commit 23a2b1f

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/thread/decorators/_threaded.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323

2424

2525
@overload
26-
def threaded(__function: TargetFunction[P, T]) -> NoParamReturn[P, T]:
27-
...
26+
def threaded(__function: TargetFunction[P, T]) -> NoParamReturn[P, T]: ...
2827

2928

3029
@overload
@@ -35,8 +34,7 @@ def threaded(
3534
ignore_errors: Sequence[type[Exception]] = (),
3635
suppress_errors: bool = False,
3736
**overflow_kwargs: Overflow_In,
38-
) -> WithParamReturn[P, T]:
39-
...
37+
) -> WithParamReturn[P, T]: ...
4038

4139

4240
@overload
@@ -48,8 +46,7 @@ def threaded(
4846
ignore_errors: Sequence[type[Exception]] = (),
4947
suppress_errors: bool = False,
5048
**overflow_kwargs: Overflow_In,
51-
) -> FullParamReturn[P, T]:
52-
...
49+
) -> FullParamReturn[P, T]: ...
5350

5451

5552
def threaded(
@@ -90,8 +87,7 @@ def threaded(
9087
9188
You can also pass keyword arguments to change the thread behaviour, it otherwise follows the defaults of `thread.Thread`
9289
>>> @thread.threaded(daemon = True)
93-
>>> def myfunction():
94-
... ...
90+
>>> def myfunction(): ...
9591
9692
Args will be ordered infront of function-parsed args parsed into `thread.Thread.args`
9793
>>> @thread.threaded(args = (1))

0 commit comments

Comments
 (0)