Skip to content

Commit

Permalink
style: Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
caffeine-addictt committed Mar 16, 2024
1 parent 864c1fc commit 23a2b1f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/thread/decorators/_threaded.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@


@overload
def threaded(__function: TargetFunction[P, T]) -> NoParamReturn[P, T]:
...
def threaded(__function: TargetFunction[P, T]) -> NoParamReturn[P, T]: ...


@overload
Expand All @@ -35,8 +34,7 @@ def threaded(
ignore_errors: Sequence[type[Exception]] = (),
suppress_errors: bool = False,
**overflow_kwargs: Overflow_In,
) -> WithParamReturn[P, T]:
...
) -> WithParamReturn[P, T]: ...


@overload
Expand All @@ -48,8 +46,7 @@ def threaded(
ignore_errors: Sequence[type[Exception]] = (),
suppress_errors: bool = False,
**overflow_kwargs: Overflow_In,
) -> FullParamReturn[P, T]:
...
) -> FullParamReturn[P, T]: ...


def threaded(
Expand Down Expand Up @@ -90,8 +87,7 @@ def threaded(
You can also pass keyword arguments to change the thread behaviour, it otherwise follows the defaults of `thread.Thread`
>>> @thread.threaded(daemon = True)
>>> def myfunction():
... ...
>>> def myfunction(): ...
Args will be ordered infront of function-parsed args parsed into `thread.Thread.args`
>>> @thread.threaded(args = (1))
Expand Down

0 comments on commit 23a2b1f

Please sign in to comment.