Skip to content

Commit 4ca4684

Browse files
chore(deps-dev): bump ruff from 0.1.15 to 0.4.5 (#96)
* chore(deps-dev): bump ruff from 0.1.15 to 0.4.5 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.15 to 0.4.5. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@v0.1.15...v0.4.5) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * style: Formating with ruff --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: AlexNg <contact@ngjx.org> Reviewed-by: AlexNg <contact@ngjx.org>
1 parent e3e0a6e commit 4ca4684

File tree

6 files changed

+32
-44
lines changed

6 files changed

+32
-44
lines changed

poetry.lock

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ importlib-metadata = { version = ">=4.4", python = "<3.10" }
4646

4747
[tool.poetry.group.dev.dependencies]
4848
pytest = ">=7.4.3,<9.0.0"
49-
ruff = "^0.1.5"
49+
ruff = ">=0.1.5,<0.5.0"
5050

5151
[build-system]
5252
requires = ["poetry-core"]

src/thread/decorators/_processor.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@
4242
@overload
4343
def processor(
4444
__function: TargetFunction[_DataT, _TargetP, _TargetT],
45-
) -> NoParamReturn[_DataT, _TargetP, _TargetT]:
46-
...
45+
) -> NoParamReturn[_DataT, _TargetP, _TargetT]: ...
4746

4847

4948
@overload
@@ -54,8 +53,7 @@ def processor(
5453
ignore_errors: Sequence[type[Exception]] = (),
5554
suppress_errors: bool = False,
5655
**overflow_kwargs: Overflow_In,
57-
) -> WithParamReturn[_DataT, _TargetP, _TargetT]:
58-
...
56+
) -> WithParamReturn[_DataT, _TargetP, _TargetT]: ...
5957

6058

6159
@overload
@@ -67,8 +65,7 @@ def processor(
6765
ignore_errors: Sequence[type[Exception]] = (),
6866
suppress_errors: bool = False,
6967
**overflow_kwargs: Overflow_In,
70-
) -> FullParamReturn[_DataT, _TargetP, _TargetT]:
71-
...
68+
) -> FullParamReturn[_DataT, _TargetP, _TargetT]: ...
7269

7370

7471
def processor(

src/thread/decorators/_threaded.py

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

2222

2323
@overload
24-
def threaded(__function: TargetFunction[P, T]) -> NoParamReturn[P, T]:
25-
...
24+
def threaded(__function: TargetFunction[P, T]) -> NoParamReturn[P, T]: ...
2625

2726

2827
@overload
@@ -33,8 +32,7 @@ def threaded(
3332
ignore_errors: Sequence[type[Exception]] = (),
3433
suppress_errors: bool = False,
3534
**overflow_kwargs: Overflow_In,
36-
) -> WithParamReturn[P, T]:
37-
...
35+
) -> WithParamReturn[P, T]: ...
3836

3937

4038
@overload
@@ -46,8 +44,7 @@ def threaded(
4644
ignore_errors: Sequence[type[Exception]] = (),
4745
suppress_errors: bool = False,
4846
**overflow_kwargs: Overflow_In,
49-
) -> FullParamReturn[P, T]:
50-
...
47+
) -> FullParamReturn[P, T]: ...
5148

5249

5350
def threaded(

src/thread/thread.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,7 @@ def __init__(
371371
_get_value: Optional[Callable[[LengthandGetLike_T, int], _Dataset_T]] = None,
372372
_length: Optional[Union[int, Callable[[Any], int]]] = None,
373373
**overflow_kwargs: Overflow_In,
374-
) -> None:
375-
...
374+
) -> None: ...
376375

377376
# Has __len__, require _get_value to be set
378377
@overload
@@ -385,8 +384,7 @@ def __init__(
385384
_get_value: Callable[[LengthLike_T, int], _Dataset_T],
386385
_length: Optional[Union[int, Callable[[Any], int]]] = None,
387386
**overflow_kwargs: Overflow_In,
388-
) -> None:
389-
...
387+
) -> None: ...
390388

391389
# Has __getitem__, require _length to be set
392390
@overload
@@ -399,8 +397,7 @@ def __init__(
399397
_get_value: Optional[Callable[[GetLike_T, int], _Dataset_T]] = None,
400398
_length: Union[int, Callable[[GetLike_T], int]],
401399
**overflow_kwargs: Overflow_In,
402-
) -> None:
403-
...
400+
) -> None: ...
404401

405402
# Does not support __getitem__ and __len__
406403
@overload
@@ -413,8 +410,7 @@ def __init__(
413410
_get_value: Callable[[Any, int], _Dataset_T],
414411
_length: Union[int, Callable[[Any], int]],
415412
**overflow_kwargs: Overflow_In,
416-
) -> None:
417-
...
413+
) -> None: ...
418414

419415
def __init__(
420416
self,

tests/test_dataframe_compatibility.py

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

3434

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

3938

4039
class DummyUnlikeSequence2:
41-
def __init__(self) -> None:
42-
...
40+
def __init__(self) -> None: ...
4341

4442
def __str__(self) -> str:
4543
return 'invalid'

0 commit comments

Comments
 (0)