Skip to content

Commit 5750f33

Browse files
style: Formatting
1 parent a288a3d commit 5750f33

File tree

4 files changed

+25
-12
lines changed

4 files changed

+25
-12
lines changed

src/thread/decorators/_processor.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
@overload
4545
def processor(
4646
__function: TargetFunction[_DataT, _TargetP, _TargetT],
47-
) -> NoParamReturn[_DataT, _TargetP, _TargetT]: ...
47+
) -> NoParamReturn[_DataT, _TargetP, _TargetT]:
48+
...
4849

4950

5051
@overload
@@ -55,7 +56,8 @@ def processor(
5556
ignore_errors: Sequence[type[Exception]] = (),
5657
suppress_errors: bool = False,
5758
**overflow_kwargs: Overflow_In,
58-
) -> WithParamReturn[_DataT, _TargetP, _TargetT]: ...
59+
) -> WithParamReturn[_DataT, _TargetP, _TargetT]:
60+
...
5961

6062

6163
@overload
@@ -67,7 +69,8 @@ def processor(
6769
ignore_errors: Sequence[type[Exception]] = (),
6870
suppress_errors: bool = False,
6971
**overflow_kwargs: Overflow_In,
70-
) -> FullParamReturn[_DataT, _TargetP, _TargetT]: ...
72+
) -> FullParamReturn[_DataT, _TargetP, _TargetT]:
73+
...
7174

7275

7376
def processor(

src/thread/decorators/_threaded.py

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

2424

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

2829

2930
@overload
@@ -34,7 +35,8 @@ def threaded(
3435
ignore_errors: Sequence[type[Exception]] = (),
3536
suppress_errors: bool = False,
3637
**overflow_kwargs: Overflow_In,
37-
) -> WithParamReturn[P, T]: ...
38+
) -> WithParamReturn[P, T]:
39+
...
3840

3941

4042
@overload
@@ -46,7 +48,8 @@ def threaded(
4648
ignore_errors: Sequence[type[Exception]] = (),
4749
suppress_errors: bool = False,
4850
**overflow_kwargs: Overflow_In,
49-
) -> FullParamReturn[P, T]: ...
51+
) -> FullParamReturn[P, T]:
52+
...
5053

5154

5255
def threaded(

src/thread/thread.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,8 @@ def __init__(
373373
_get_value: Optional[Callable[[LengthandGetLike_T, int], _Dataset_T]] = None,
374374
_length: Optional[Union[int, Callable[[Any], int]]] = None,
375375
**overflow_kwargs: Overflow_In,
376-
) -> None: ...
376+
) -> None:
377+
...
377378

378379
# Has __len__, require _get_value to be set
379380
@overload
@@ -386,7 +387,8 @@ def __init__(
386387
_get_value: Callable[[LengthLike_T, int], _Dataset_T],
387388
_length: Optional[Union[int, Callable[[Any], int]]] = None,
388389
**overflow_kwargs: Overflow_In,
389-
) -> None: ...
390+
) -> None:
391+
...
390392

391393
# Has __getitem__, require _length to be set
392394
@overload
@@ -399,7 +401,8 @@ def __init__(
399401
_get_value: Optional[Callable[[GetLike_T, int], _Dataset_T]] = None,
400402
_length: Union[int, Callable[[GetLike_T], int]],
401403
**overflow_kwargs: Overflow_In,
402-
) -> None: ...
404+
) -> None:
405+
...
403406

404407
# Does not support __getitem__ and __len__
405408
@overload
@@ -412,7 +415,8 @@ def __init__(
412415
_get_value: Callable[[Any, int], _Dataset_T],
413416
_length: Union[int, Callable[[Any], int]],
414417
**overflow_kwargs: Overflow_In,
415-
) -> None: ...
418+
) -> None:
419+
...
416420

417421
def __init__(
418422
self,

tests/test_dataframe_compatibility.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,14 @@ def __init__(self, length: typing.Any, dataset: list):
3333

3434

3535
class DummyUnlikeSequence1:
36-
def __init__(self) -> None: ...
36+
def __init__(self) -> None:
37+
...
3738

3839

3940
class DummyUnlikeSequence2:
40-
def __init__(self) -> None: ...
41+
def __init__(self) -> None:
42+
...
43+
4144
def __str__(self) -> str:
4245
return 'invalid'
4346

0 commit comments

Comments
 (0)